OSDN Git Service

Don't force LLVM to be only built as 64-bit on the host.
authorStephen Hines <srhines@google.com>
Sat, 19 Sep 2015 02:03:33 +0000 (19:03 -0700)
committerStephen Hines <srhines@google.com>
Sat, 19 Sep 2015 06:15:23 +0000 (23:15 -0700)
We do need to force 64-bit if a host component is using libLLVM,
however, since we only have 64-bit prebuilts.

Change-Id: Iee0282973fc989e09c6811f5dff13a78c543bdda

llvm-host-build.mk

index 28463b5..2f71710 100644 (file)
@@ -72,8 +72,11 @@ LOCAL_IS_HOST_MODULE := true
 ifeq ($(HOST_PREFER_32_BIT),true)
 LOCAL_MULTILIB := 32
 else
+ifeq (libLLVM, $(filter libLLVM,$(LOCAL_SHARED_LIBRARIES)$(LOCAL_SHARED_LIBRARIES_$(HOST_OS))))
+# Skip building a 32-bit shared object if they are using libLLVM.
 LOCAL_MULTILIB := first
 endif
+endif
 
 ###########################################################
 ## Commands for running tblgen to compile a td file