aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Target/ARM/AsmParser/Android.mk
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Target/ARM/AsmParser/Android.mk')
-rw-r--r--lib/Target/ARM/AsmParser/Android.mk9
1 files changed, 7 insertions, 2 deletions
diff --git a/lib/Target/ARM/AsmParser/Android.mk b/lib/Target/ARM/AsmParser/Android.mk
index 6303fd0..e28fa40 100644
--- a/lib/Target/ARM/AsmParser/Android.mk
+++ b/lib/Target/ARM/AsmParser/Android.mk
@@ -1,3 +1,6 @@
+# Only use this on the device or emulator.
+ifneq ($(TARGET_ARCH),arm)
+
LOCAL_PATH := $(call my-dir)
# For the device only
@@ -9,14 +12,14 @@ TBLGEN_TABLES := \
ARMGenInstrNames.inc \
ARMGenRegisterNames.inc \
ARMGenRegisterInfo.h.inc
-
+
TBLGEN_TD_DIR := $(LOCAL_PATH)/..
LOCAL_SRC_FILES := \
ARMAsmLexer.cpp \
ARMAsmParser.cpp
-
+
LOCAL_C_INCLUDES += \
$(LOCAL_PATH)/..
@@ -25,3 +28,5 @@ LOCAL_MODULE:= libLLVMARMAsmParser
include $(LLVM_DEVICE_BUILD_MK)
include $(LLVM_TBLGEN_RULES_MK)
include $(BUILD_STATIC_LIBRARY)
+
+endif