aboutsummaryrefslogtreecommitdiffstats
path: root/llvm-device-build.mk
diff options
context:
space:
mode:
authorJing Yu <jingyu@google.com>2010-12-07 16:21:00 -0800
committerJing Yu <jingyu@google.com>2010-12-07 16:21:00 -0800
commit7fa502c8157d3e9584da0bf3c6f87f7ca70e5b69 (patch)
treee6f2186159b8fcc470fabf90d06f468c2b9530b3 /llvm-device-build.mk
parent7389b98289f7fb09c1641e07044ff816a56f4eba (diff)
downloadexternal_llvm-7fa502c8157d3e9584da0bf3c6f87f7ca70e5b69.zip
external_llvm-7fa502c8157d3e9584da0bf3c6f87f7ca70e5b69.tar.gz
external_llvm-7fa502c8157d3e9584da0bf3c6f87f7ca70e5b69.tar.bz2
Move global inline options to local makefile for libbcc.so.
We plan to remove the global inline options for better inline tuning. Blindly removing global inline options for libbcc.so may increase certain code size. To be conservative, we simply copy the global inline options into local makefile for libbcc.so. Change-Id: I30ca5ef67602be51c9b83fa52e8c3ced423694ea
Diffstat (limited to 'llvm-device-build.mk')
-rw-r--r--llvm-device-build.mk9
1 files changed, 8 insertions, 1 deletions
diff --git a/llvm-device-build.mk b/llvm-device-build.mk
index b8f38c7..0090359 100644
--- a/llvm-device-build.mk
+++ b/llvm-device-build.mk
@@ -11,7 +11,14 @@ LOCAL_CFLAGS := \
$(LOCAL_CFLAGS)
ifneq ($(TARGET_SIMULATOR),true)
-LOCAL_CFLAGS := -DANDROID_TARGET_BUILD $(LOCAL_CFLAGS)
+# The three inline options together reduce libbcc.so almost 1MB.
+# We move them from global build/core/combo/TARGET_linux-arm.mk
+# to here.
+LOCAL_CFLAGS := -DANDROID_TARGET_BUILD \
+ -finline-limit=64 \
+ -finline-functions \
+ -fno-inline-functions-called-once \
+ $(LOCAL_CFLAGS)
endif
ifeq ($(LLVM_ENABLE_ASSERTION),true)