diff options
author | Ying Wang <wangying@google.com> | 2010-08-20 10:59:12 -0700 |
---|---|---|
committer | Ying Wang <wangying@google.com> | 2010-08-20 10:59:12 -0700 |
commit | 5183d48d560ae7c0c548bc23eb0101784cfd664d (patch) | |
tree | 82b33fd90a080aa0b558ee5bb474f8d6eea8aad5 /llvm-device-build.mk | |
parent | 28c238c9ded0b5c91e122c94b5a02d76a5245c11 (diff) | |
download | external_llvm-5183d48d560ae7c0c548bc23eb0101784cfd664d.zip external_llvm-5183d48d560ae7c0c548bc23eb0101784cfd664d.tar.gz external_llvm-5183d48d560ae7c0c548bc23eb0101784cfd664d.tar.bz2 |
Fix sim build.
Change-Id: I2c8630506321e6046c4cffce055438e0acb8db78
Diffstat (limited to 'llvm-device-build.mk')
-rw-r--r-- | llvm-device-build.mk | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/llvm-device-build.mk b/llvm-device-build.mk index 17532a0..b8f38c7 100644 --- a/llvm-device-build.mk +++ b/llvm-device-build.mk @@ -2,7 +2,6 @@ LOCAL_CFLAGS := \ -D_GNU_SOURCE \ -D__STDC_LIMIT_MACROS \ -D__STDC_CONSTANT_MACROS \ - -DANDROID_TARGET_BUILD \ -O2 \ -fomit-frame-pointer \ -Wall \ @@ -11,6 +10,10 @@ LOCAL_CFLAGS := \ -Wwrite-strings \ $(LOCAL_CFLAGS) +ifneq ($(TARGET_SIMULATOR),true) +LOCAL_CFLAGS := -DANDROID_TARGET_BUILD $(LOCAL_CFLAGS) +endif + ifeq ($(LLVM_ENABLE_ASSERTION),true) LOCAL_CFLAGS := \ -D_DEBUG \ @@ -38,13 +41,18 @@ LOCAL_CPPFLAGS := \ # Make sure bionic is first so we can include system headers. LOCAL_C_INCLUDES := \ - bionic \ - external/stlport/stlport \ $(LLVM_ROOT_PATH) \ $(LLVM_ROOT_PATH)/include \ $(LLVM_ROOT_PATH)/device/include \ $(LOCAL_C_INCLUDES) +ifneq ($(TARGET_SIMULATOR),true) +LOCAL_C_INCLUDES := \ + bionic \ + external/stlport/stlport \ + $(LOCAL_C_INCLUDES) +endif + ########################################################### ## Commands for running tblgen to compile a td file ########################################################### |