OSDN Git Service

Add -fno-inline to LLVM device flags.
authorTim Murray <timmurray@google.com>
Mon, 29 Dec 2014 20:46:43 +0000 (12:46 -0800)
committerTim Murray <timmurray@google.com>
Tue, 30 Dec 2014 18:24:06 +0000 (10:24 -0800)
This works around a problem in the last rebase where RS compiles
using an AArch64-based toolchain crash.

bug 18808781

Change-Id: I6c51cf6fc34a1da9182b11fae9471791fa959e6e

llvm-device-build.mk

index 5d863f5..acdb0a8 100644 (file)
@@ -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.