OSDN Git Service

Take HOST_PREFER_32_BIT into account
authorColin Cross <ccross@android.com>
Wed, 8 Apr 2015 21:50:08 +0000 (14:50 -0700)
committerColin Cross <ccross@android.com>
Wed, 8 Apr 2015 21:56:47 +0000 (14:56 -0700)
LLVM modules should compile for 64-bit for the host, except when
HOST_PREFER_32_BIT is set.

Change-Id: I8179df10b929ce1cc655e097814fa50ca0c3c43e

llvm-host-build.mk

index 74e14ba..d2c7e52 100644 (file)
@@ -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