aboutsummaryrefslogtreecommitdiffstats
path: root/llvm-device-build.mk
diff options
context:
space:
mode:
authorShih-wei Liao <sliao@google.com>2012-07-17 15:05:00 -0700
committerShih-wei Liao <sliao@google.com>2012-07-17 15:05:00 -0700
commita523d505e6da8650dd5a86474cec28d03109f346 (patch)
treec8a5d7459693c666b463d7b1118a2f277d212a3f /llvm-device-build.mk
parent7817934515cdec7157a853376b2a5f83fae687fc (diff)
downloadexternal_llvm-a523d505e6da8650dd5a86474cec28d03109f346.zip
external_llvm-a523d505e6da8650dd5a86474cec28d03109f346.tar.gz
external_llvm-a523d505e6da8650dd5a86474cec28d03109f346.tar.bz2
Device side needs -D__STDC_LIMIT_MACROS.
Change-Id: I44e9708a4c41afe85f98b4b7adad83bbbe599320
Diffstat (limited to 'llvm-device-build.mk')
-rw-r--r--llvm-device-build.mk10
1 files changed, 3 insertions, 7 deletions
diff --git a/llvm-device-build.mk b/llvm-device-build.mk
index 3811c99..30baec0 100644
--- a/llvm-device-build.mk
+++ b/llvm-device-build.mk
@@ -1,5 +1,8 @@
LOCAL_CFLAGS := \
-D_GNU_SOURCE \
+ -D__STDC_LIMIT_MACROS \
+ -D__STDC_CONSTANT_MACROS \
+ -D__STDC_FORMAT_MACROS \
-O2 \
-fomit-frame-pointer \
-Wall \
@@ -8,13 +11,6 @@ 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.