aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorColin Cross <ccross@android.com>2015-04-08 14:50:08 -0700
committerColin Cross <ccross@android.com>2015-04-08 14:56:47 -0700
commit92ccc85915133409f202cb2a838c243d910e0df2 (patch)
tree6fcfba06fb9f54fe214144b9df22a7dcf47351dc
parent62e6deb6547e82c80cf84385ffb9339bb6b09e6f (diff)
downloadexternal_llvm-92ccc85915133409f202cb2a838c243d910e0df2.zip
external_llvm-92ccc85915133409f202cb2a838c243d910e0df2.tar.gz
external_llvm-92ccc85915133409f202cb2a838c243d910e0df2.tar.bz2
Take HOST_PREFER_32_BIT into account
LLVM modules should compile for 64-bit for the host, except when HOST_PREFER_32_BIT is set. Change-Id: I8179df10b929ce1cc655e097814fa50ca0c3c43e
-rw-r--r--llvm-host-build.mk4
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm-host-build.mk b/llvm-host-build.mk
index 74e14ba..d2c7e52 100644
--- a/llvm-host-build.mk
+++ b/llvm-host-build.mk
@@ -58,7 +58,11 @@ endif
LOCAL_IS_HOST_MODULE := true
+ifeq ($(HOST_PREFER_32_BIT),true)
+LOCAL_MULTILIB := 32
+else
LOCAL_MULTILIB := first
+endif
###########################################################
## Commands for running tblgen to compile a td file