platform_build/core/clang
Alistair Strachan 7390ef5553 Avoid accidentally using the host's native 'as' command.
When invoking clang for the host to assemble .S files, the -B flag
would not be provided, which allowed the host prebuilt clang to
use an 'as' from the native environment. Most of the time this
"just works", but some newer 'as' versions cause problems with
the older prebuilt toolchain, for example by generating
unsupported relocation types.

To avoid this problem, simply use the -B flag to tell clang to
invoke the assembler from the correct prebuilt gcc prefix.

(cherry-picked from AOSP commit 5ff9c81b6c)

Change-Id: I18ea4f37ae637b652cfd7321c41929f8be075342
Signed-off-by: Alistair Strachan <alistair.strachan@imgtec.com>
2016-08-22 19:39:25 -07:00
..
arm.mk Remove -Wa,noexecstack from unsupported arm clang flags 2016-01-12 15:54:57 -08:00
arm64.mk Remove -Wa,noexecstack from unsupported arm clang flags 2016-01-12 15:54:57 -08:00
config.mk Update RenderScript build rules for rebase to LLVM r256229 2016-03-20 22:53:04 -07:00
HOST_CROSS_x86.mk Add 64-bit windows cross-compiles 2016-02-26 18:51:26 -08:00
HOST_CROSS_x86_64.mk Add 64-bit windows cross-compiles 2016-02-26 18:51:26 -08: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 Avoid accidentally using the host's native 'as' command. 2016-08-22 19:39:25 -07: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 Update RenderScript build rules for rebase to LLVM r256229 2016-03-20 22:53:04 -07:00
TARGET_arm64.mk Remove RPATH for AddressSanitizer. 2015-12-21 10:29:54 -08:00
TARGET_mips.mk Update RenderScript build rules for rebase to LLVM r256229 2016-03-20 22:53:04 -07:00
TARGET_mips64.mk Use prebuilt libclang_rt.profile. 2015-04-01 19:03:22 -07:00
TARGET_x86.mk Update RenderScript build rules for rebase to LLVM r256229 2016-03-20 22:53:04 -07:00
TARGET_x86_64.mk Use prebuilt libclang_rt.profile. 2015-04-01 19:03:22 -07:00
versions.mk Switch to clang-2690385 2016-03-20 22:57:32 -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