aboutsummaryrefslogtreecommitdiffstats
path: root/llvm-device-build.mk
diff options
context:
space:
mode:
authorTim Murray <timmurray@google.com>2014-12-29 12:46:43 -0800
committerTim Murray <timmurray@google.com>2014-12-30 10:24:06 -0800
commit666dcadba6e445a06085ee785721bab99a01a226 (patch)
treedb85d0e710b5b5b66958b406fd464d2bea7b7c88 /llvm-device-build.mk
parentb4cbf2e86bc30549b49a99d99af9a5f91c607e9b (diff)
downloadexternal_llvm-666dcadba6e445a06085ee785721bab99a01a226.zip
external_llvm-666dcadba6e445a06085ee785721bab99a01a226.tar.gz
external_llvm-666dcadba6e445a06085ee785721bab99a01a226.tar.bz2
Add -fno-inline to LLVM device flags.
This works around a problem in the last rebase where RS compiles using an AArch64-based toolchain crash. bug 18808781 Change-Id: I6c51cf6fc34a1da9182b11fae9471791fa959e6e
Diffstat (limited to 'llvm-device-build.mk')
-rw-r--r--llvm-device-build.mk4
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm-device-build.mk b/llvm-device-build.mk
index 5d863f5..acdb0a8 100644
--- a/llvm-device-build.mk
+++ b/llvm-device-build.mk
@@ -16,6 +16,10 @@ LOCAL_CFLAGS := \
-Dsprintf=sprintf \
$(LOCAL_CFLAGS)
+# ARM64 builds seem to miscompile libLLVM without fno-inline.
+# Test and eventually remove after a future rebase.
+LOCAL_CFLAGS_arm64 := -fno-inline
+
# The three inline options together reduce libbcc.so almost 1MB.
# We move them from global build/core/combo/TARGET_linux-arm.mk
# to here.