platform_build/core/clang
Dan Willemsen 6a66a887ba Stop encoding absolute paths in symbols
GCC & Clang encode the current working directory into the symbol files.
Even if the binaries are stripped before being installed, the build-id
hash will be different. This means that two different checkouts will
produce different installed binaries, even if the sources are identical.

To prevent this, set PWD=/proc/self/cwd, so that it replaces the
absolute path with the static path /proc/self/cwd. With GCC, use
-fdebug-prefix-map to remove that static path. Our clang does not yet
support this flag, but it was merged in r250094.

This does change the behavior when using gdb -- you now need to be in
$ANDROID_BUILD_TOP before gdb will load the sources.

Bug: 24204119
Change-Id: I792d65b042b7a3fdc78d567c5a6e93cdf0141b9b
2015-10-14 17:30:11 -07:00
..
arm.mk Merge "Revert "disable Krait for Mac builds to avoid assembler issues"" 2015-09-25 01:07:52 +00:00
arm64.mk Set default to Clang integrated assembler. 2014-10-22 09:21:53 -07:00
config.mk Stop encoding absolute paths in symbols 2015-10-14 17:30:11 -07:00
HOST_CROSS_windows.mk Add HOST_CROSS_OS 2015-09-09 18:12:29 +00:00
HOST_x86.mk Add HOST_CROSS_OS 2015-09-09 18:12:29 +00:00
HOST_x86_64.mk Add HOST_CROSS_OS 2015-09-09 18:12:29 +00:00
HOST_x86_common.mk Add HOST_CROSS_OS 2015-09-09 18:12:29 +00:00
mips.mk Merge "Configure synci generation explicitly" 2015-07-01 18:58:52 +00:00
mips64.mk Merge "Configure synci generation explicitly" 2015-07-01 18:58:52 +00:00
TARGET_arm.mk Use a different linker for ASan binaries. 2015-07-14 11:10:40 -07:00
TARGET_arm64.mk Use a different linker for ASan binaries. 2015-07-14 11:10:40 -07:00
TARGET_mips.mk Use prebuilt libclang_rt.profile. 2015-04-01 19:03:22 -07:00
TARGET_mips64.mk Use prebuilt libclang_rt.profile. 2015-04-01 19:03:22 -07:00
TARGET_x86.mk Add AddressSanitizer linker flags for x86. 2015-09-02 11:59:45 -07:00
TARGET_x86_64.mk Use prebuilt libclang_rt.profile. 2015-04-01 19:03:22 -07:00
x86.mk Refactor llvm_config.mk and support the 2nd arch 2014-02-07 09:11:22 -08:00
x86_64.mk Refactor llvm_config.mk and support the 2nd arch 2014-02-07 09:11:22 -08:00