diff options
author | Shih-wei Liao <sliao@google.com> | 2012-07-17 14:54:32 -0700 |
---|---|---|
committer | Shih-wei Liao <sliao@google.com> | 2012-07-17 14:54:32 -0700 |
commit | 7817934515cdec7157a853376b2a5f83fae687fc (patch) | |
tree | f98b5a9747a74890ec40af8ec0d2728bd46c3597 /llvm-device-build.mk | |
parent | 7f57ba71d8512278cbf5fa70e478a5458b36407b (diff) | |
download | external_llvm-7817934515cdec7157a853376b2a5f83fae687fc.zip external_llvm-7817934515cdec7157a853376b2a5f83fae687fc.tar.gz external_llvm-7817934515cdec7157a853376b2a5f83fae687fc.tar.bz2 |
Fix Mac build breakage.
Change-Id: I5c92053d81093cdb7810d758d568d2694038280a
Diffstat (limited to 'llvm-device-build.mk')
-rw-r--r-- | llvm-device-build.mk | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/llvm-device-build.mk b/llvm-device-build.mk index 30baec0..3811c99 100644 --- a/llvm-device-build.mk +++ b/llvm-device-build.mk @@ -1,8 +1,5 @@ LOCAL_CFLAGS := \ -D_GNU_SOURCE \ - -D__STDC_LIMIT_MACROS \ - -D__STDC_CONSTANT_MACROS \ - -D__STDC_FORMAT_MACROS \ -O2 \ -fomit-frame-pointer \ -Wall \ @@ -11,6 +8,13 @@ LOCAL_CFLAGS := \ -Wwrite-strings \ $(LOCAL_CFLAGS) +ifneq ($(HOST_OS),darwin) +LOCAL_CFLAGS += \ + -D__STDC_LIMIT_MACROS \ + -D__STDC_CONSTANT_MACROS \ + -D__STDC_FORMAT_MACROS +endif + # The three inline options together reduce libbcc.so almost 1MB. # We move them from global build/core/combo/TARGET_linux-arm.mk # to here. |