OSDN Git Service

Fix the sim-eng build.
authorCarl Shapiro <cshapiro@google.com>
Wed, 14 Apr 2010 00:53:26 +0000 (17:53 -0700)
committerCarl Shapiro <cshapiro@google.com>
Wed, 14 Apr 2010 00:53:26 +0000 (17:53 -0700)
Change-Id: I3e7262220c92b9973da909d94ed3cff59ffc9294

Android.mk

index 9c065f6..52d42c5 100644 (file)
@@ -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