aboutsummaryrefslogtreecommitdiffstats
path: root/lib/CodeGen
diff options
context:
space:
mode:
Diffstat (limited to 'lib/CodeGen')
-rw-r--r--lib/CodeGen/Android.mk5
-rw-r--r--lib/CodeGen/AsmPrinter/Android.mk13
-rw-r--r--lib/CodeGen/SelectionDAG/Android.mk7
3 files changed, 20 insertions, 5 deletions
diff --git a/lib/CodeGen/Android.mk b/lib/CodeGen/Android.mk
index d232e55..2ce8aec 100644
--- a/lib/CodeGen/Android.mk
+++ b/lib/CodeGen/Android.mk
@@ -1,3 +1,6 @@
+# Only use this on the device or emulator.
+ifneq ($(TARGET_ARCH),arm)
+
LOCAL_PATH:= $(call my-dir)
codegen_SRC_FILES := \
@@ -99,3 +102,5 @@ LOCAL_MODULE:= libLLVMCodeGen
include $(LLVM_DEVICE_BUILD_MK)
include $(LLVM_GEN_INTRINSICS_MK)
include $(BUILD_STATIC_LIBRARY)
+
+endif
diff --git a/lib/CodeGen/AsmPrinter/Android.mk b/lib/CodeGen/AsmPrinter/Android.mk
index 0063f43..159de2b 100644
--- a/lib/CodeGen/AsmPrinter/Android.mk
+++ b/lib/CodeGen/AsmPrinter/Android.mk
@@ -1,3 +1,6 @@
+# Only use this on the device or emulator.
+ifneq ($(TARGET_ARCH),arm)
+
LOCAL_PATH := $(call my-dir)
codegen_asmprinter_SRC_FILES := \
@@ -10,11 +13,11 @@ include $(CLEAR_VARS)
LOCAL_SRC_FILES := \
AsmPrinter.cpp \
AsmPrinterDwarf.cpp \
- AsmPrinterInlineAsm.cpp \
+ AsmPrinterInlineAsm.cpp \
DIE.cpp \
DwarfDebug.cpp \
DwarfException.cpp \
- OcamlGCPrinter.cpp
+ OcamlGCPrinter.cpp
LOCAL_MODULE:= libLLVMAsmPrinter
@@ -26,10 +29,12 @@ include $(BUILD_HOST_STATIC_LIBRARY)
include $(CLEAR_VARS)
LOCAL_SRC_FILES := \
- AsmPrinter.cpp \
- AsmPrinterInlineAsm.cpp
+ AsmPrinter.cpp \
+ AsmPrinterInlineAsm.cpp
LOCAL_MODULE:= libLLVMAsmPrinter
include $(LLVM_DEVICE_BUILD_MK)
include $(BUILD_STATIC_LIBRARY)
+
+endif
diff --git a/lib/CodeGen/SelectionDAG/Android.mk b/lib/CodeGen/SelectionDAG/Android.mk
index eb15a18..b3665cf 100644
--- a/lib/CodeGen/SelectionDAG/Android.mk
+++ b/lib/CodeGen/SelectionDAG/Android.mk
@@ -1,3 +1,6 @@
+# Only use this on the device or emulator.
+ifneq ($(TARGET_ARCH),arm)
+
LOCAL_PATH:= $(call my-dir)
codegen_selectiondag_SRC_FILES := \
@@ -21,7 +24,7 @@ codegen_selectiondag_SRC_FILES := \
SelectionDAGBuilder.cpp \
SelectionDAGISel.cpp \
SelectionDAGPrinter.cpp \
- TargetLowering.cpp
+ TargetLowering.cpp
# For the host
# =====================================================
@@ -46,3 +49,5 @@ LOCAL_MODULE:= libLLVMSelectionDAG
include $(LLVM_DEVICE_BUILD_MK)
include $(LLVM_GEN_INTRINSICS_MK)
include $(BUILD_STATIC_LIBRARY)
+
+endif