aboutsummaryrefslogtreecommitdiffstats
path: root/Android.mk
diff options
context:
space:
mode:
Diffstat (limited to 'Android.mk')
-rw-r--r--Android.mk10
1 files changed, 5 insertions, 5 deletions
diff --git a/Android.mk b/Android.mk
index 9c065f6..52d42c5 100644
--- a/Android.mk
+++ b/Android.mk
@@ -1,12 +1,10 @@
+# Only use this on the device or emulator.
+ifneq ($(TARGET_SIMULATOR),true)
+
LOCAL_PATH := $(call my-dir)
LLVM_ROOT_PATH := $(LOCAL_PATH)
include $(CLEAR_VARS)
-# Only use this on the device or emulator.
-ifeq ($(TARGET_SIMULATOR),true)
-$(error LLVM not suitable for the simulator! $(LOCAL_PATH))
-endif
-
subdirs := $(addprefix $(LOCAL_PATH)/,$(addsuffix /Android.mk, \
lib/System \
lib/Support \
@@ -37,3 +35,5 @@ LLVM_GEN_INTRINSICS_MK := $(LOCAL_PATH)/llvm-gen-intrinsics.mk
LLVM_TBLGEN_RULES_MK := $(LOCAL_PATH)/tblgen-rules.mk
include $(subdirs)
+
+endif