OSDN Git Service

Fix llvm.mk and the other 49 mk files
[android-x86/external-llvm.git] / lib / Target / X86 / AsmParser / Android.mk
index c94af7f..6391fb8 100644 (file)
@@ -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 :=     \
        X86GenAsmMatcher.inc    \
        X86GenInstrNames.inc    \
        X86GenRegisterNames.inc
-       
+
 
 TBLGEN_TD_DIR := $(LOCAL_PATH)/..
 
 LOCAL_SRC_FILES :=     \
        X86AsmLexer.cpp \
        X86AsmParser.cpp
-       
+
 LOCAL_C_INCLUDES +=    \
        $(LOCAL_PATH)/..
 
@@ -25,3 +28,5 @@ LOCAL_MODULE:= libLLVMX86AsmParser
 include $(LLVM_HOST_BUILD_MK)
 include $(LLVM_TBLGEN_RULES_MK)
 include $(BUILD_HOST_STATIC_LIBRARY)
+
+endif