summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorYing Wang <wangying@google.com>2014-11-06 14:11:33 -0800
committerStephen Hines <srhines@google.com>2015-05-19 22:34:40 -0700
commita6ffb929f44e8def03bdc820386c5acfbd78f24b (patch)
treef1cfefef8ff29f4d89ba68930317e2fa8c3c682d /core
parentbf6b82fbf1ec51523c615f8bf856c315c27b6890 (diff)
downloadbuild-a6ffb929f44e8def03bdc820386c5acfbd78f24b.zip
build-a6ffb929f44e8def03bdc820386c5acfbd78f24b.tar.gz
build-a6ffb929f44e8def03bdc820386c5acfbd78f24b.tar.bz2
FORCE_BUILD_LLVM_COMPONENTS if HOST_PREFER_32_BIT.
Because we don't have 32-bit prebuilt libLLVM/libclang. Change-Id: I86dac33e9bcbcb3d197f7d1e4c9d33bd4e7c473e (cherry picked from commit e5d4e74f9f8c09b79cac8125fb58bdfbb4f1aa9c)
Diffstat (limited to 'core')
-rw-r--r--core/clang/config.mk5
1 files changed, 5 insertions, 0 deletions
diff --git a/core/clang/config.mk b/core/clang/config.mk
index 5b2aea5..2a2ce94 100644
--- a/core/clang/config.mk
+++ b/core/clang/config.mk
@@ -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