aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorColin Cross <ccross@android.com>2014-02-18 23:51:21 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2014-02-18 23:51:21 +0000
commitb7485134a2cbecc47904988b4cfde24019ac4fa1 (patch)
tree8ef7f8072eedd55d7a3d330e1d7f741e034ce4f4 /tools
parent1fb20b43c912416e9f9696366235a091d2acfc65 (diff)
parent449fc26100e40d8dc9f5ca05cb111ca7f9b0d0ca (diff)
downloadexternal_llvm-b7485134a2cbecc47904988b4cfde24019ac4fa1.zip
external_llvm-b7485134a2cbecc47904988b4cfde24019ac4fa1.tar.gz
external_llvm-b7485134a2cbecc47904988b4cfde24019ac4fa1.tar.bz2
am 449fc261: Merge "llvm: convert makefiles to support multilib build"
* commit '449fc26100e40d8dc9f5ca05cb111ca7f9b0d0ca': llvm: convert makefiles to support multilib build
Diffstat (limited to 'tools')
-rw-r--r--tools/llc/Android.mk26
1 files changed, 8 insertions, 18 deletions
diff --git a/tools/llc/Android.mk b/tools/llc/Android.mk
index af1f75a..fde9f8c 100644
--- a/tools/llc/Android.mk
+++ b/tools/llc/Android.mk
@@ -91,9 +91,10 @@ include $(BUILD_HOST_EXECUTABLE)
# llc command line tool (target)
#===---------------------------------------------------------------===
-#TODOArm64: Enable llc build
-#TODOMips64: Enable llc build
-ifeq ($(filter $(TARGET_ARCH),arm64 mips64),)
+ifeq (,$(filter $(TARGET_ARCH),$(LLVM_SUPPORTED_ARCH)))
+$(warning TODO $(TARGET_ARCH): Enable llc build)
+endif
+
include $(CLEAR_VARS)
LOCAL_MODULE := llc
@@ -103,19 +104,10 @@ LOCAL_MODULE_CLASS := EXECUTABLES
LOCAL_SRC_FILES := $(llvm_llc_SRC_FILES)
LOCAL_C_INCLUDES += external/llvm/include
-ifeq ($(TARGET_ARCH),arm)
- LOCAL_STATIC_LIBRARIES := $(llvm_llc_arm_STATIC_LIBRARIES)
-else
- ifeq ($(TARGET_ARCH),mips)
- LOCAL_STATIC_LIBRARIES := $(llvm_llc_mips_STATIC_LIBRARIES)
- else
- ifeq ($(TARGET_ARCH),$(filter $(TARGET_ARCH),x86 x86_64 x32))
- LOCAL_STATIC_LIBRARIES := $(llvm_llc_x86_STATIC_LIBRARIES)
- else
- $(error "Unsupport llc target $(TARGET_ARCH)")
- endif
- endif
-endif
+LOCAL_STATIC_LIBRARIES_arm := $(llvm_llc_arm_STATIC_LIBRARIES)
+LOCAL_STATIC_LIBRARIES_mips := $(llvm_llc_mips_STATIC_LIBRARIES)
+LOCAL_STATIC_LIBRARIES_x86 := $(llvm_llc_x86_STATIC_LIBRARIES)
+LOCAL_STATIC_LIBRARIES_x86_64 := $(llvm_llc_x86_STATIC_LIBRARIES)
LOCAL_STATIC_LIBRARIES += $(llvm_llc_STATIC_LIBRARIES)
@@ -128,5 +120,3 @@ include $(LLVM_ROOT_PATH)/llvm.mk
include $(LLVM_DEVICE_BUILD_MK)
include $(LLVM_GEN_INTRINSICS_MK)
include $(BUILD_EXECUTABLE)
-
-endif # !(arm64 || mips64)