OSDN Git Service

Force Clang aarch64 builds to -O1.
authorDan Albert <danalbert@google.com>
Sun, 16 Aug 2015 23:49:29 +0000 (16:49 -0700)
committerDan Albert <danalbert@google.com>
Sun, 16 Aug 2015 23:57:16 +0000 (23:57 +0000)
Bug: http://b/23256622
Change-Id: Icab87964576f12a671e255500dec901f3558e7ad

build/Android.common_build.mk

index 3d7b697..9f15294 100644 (file)
@@ -275,6 +275,16 @@ art_debug_cflags := \
   -DVIXL_DEBUG \
   -UNDEBUG
 
+# The latest clang update trips over many of the files in art and never finishes
+# compiling for aarch64 with -O3 (or -O2). Drop back to -O1 while we investigate
+# to stop punishing the build server.
+ifeq ($(TARGET_ARCH),arm64)
+  ifeq ($(USE_CLANG_PLATFORM_BUILD),true)
+    art_debug_cflags += -O1
+    art_non_debug_cflags += -O1
+  endif
+endif
+
 art_host_non_debug_cflags := $(art_non_debug_cflags)
 art_target_non_debug_cflags := $(art_non_debug_cflags)