OSDN Git Service

FORCE_BUILD_LLVM_COMPONENTS if HOST_PREFER_32_BIT.
authorYing Wang <wangying@google.com>
Thu, 6 Nov 2014 22:11:33 +0000 (14:11 -0800)
committerStephen Hines <srhines@google.com>
Wed, 20 May 2015 05:34:40 +0000 (22:34 -0700)
Because we don't have 32-bit prebuilt libLLVM/libclang.

Change-Id: I86dac33e9bcbcb3d197f7d1e4c9d33bd4e7c473e
(cherry picked from commit e5d4e74f9f8c09b79cac8125fb58bdfbb4f1aa9c)

core/clang/config.mk

index 5b2aea5..2a2ce94 100644 (file)
@@ -101,3 +101,8 @@ ADDRESS_SANITIZER_CONFIG_EXTRA_STATIC_LIBRARIES := libasan
 # This allows us to use the superset of functionality that compiler-rt
 # provides to Clang (for supporting features like -ftrapv).
 COMPILER_RT_CONFIG_EXTRA_STATIC_LIBRARIES := libcompiler_rt-extras
+
+ifeq ($(HOST_PREFER_32_BIT),true)
+# We don't have 32-bit prebuilt libLLVM/libclang, so force to build them from source.
+FORCE_BUILD_LLVM_COMPONENTS := true
+endif