platform_build/core/clang
Alistair Strachan eea0ad4ca0 DO NOT MERGE ANYWHERE 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 20:25:27 +00:00
..
arm.mk Allow -mcpu=cortex-a15 for clang 2015-03-25 16:59:46 +01:00
arm64.mk Set default to Clang integrated assembler. 2014-10-22 09:21:53 -07:00
config.mk Don't prepend CC_WRAPPER to CLANG. 2015-08-03 14:06:58 -07:00
HOST_x86.mk Use prebuilt libclang_rt.profile. 2015-04-01 19:03:22 -07:00
HOST_x86_64.mk Use prebuilt libclang_rt.profile. 2015-04-01 19:03:22 -07:00
HOST_x86_common.mk DO NOT MERGE ANYWHERE Avoid accidentally using the host's native 'as' command. 2016-08-22 20:25:27 +00:00
mips.mk Change mips64 default to mips64r6 from mips64r2 2014-09-04 19:01:22 -07:00
mips64.mk Change mips64 default to mips64r6 from mips64r2 2014-09-04 19:01:22 -07:00
TARGET_arm.mk Fix AddressSanitizer link order and multilib setup. 2015-05-12 13:40:29 -07:00
TARGET_arm64.mk Fix AddressSanitizer link order and multilib setup. 2015-05-12 13:40:29 -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 Use prebuilt libclang_rt.profile. 2015-04-01 19:03:22 -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