Enable -Wframe-larger-than=1728 compilation error
Bug: 15278350
Change-Id: I142dc9de0312ac1f8aa55a4bce86b5bb6722535f
diff --git a/build/Android.common.mk b/build/Android.common.mk
index d65f11a..aa167b2 100644
--- a/build/Android.common.mk
+++ b/build/Android.common.mk
@@ -222,14 +222,14 @@
art_cflags += -DART_SEA_IR_MODE=1
endif
-ifeq ($(HOST_OS),linux)
- art_non_debug_cflags := \
- -Wframe-larger-than=1728
-endif
-
art_non_debug_cflags := \
-O3
+ifeq ($(HOST_OS),linux)
+ art_non_debug_cflags += \
+ -Wframe-larger-than=1728
+endif
+
# FIXME: upstream LLVM has a vectorizer bug that needs to be fixed
ART_TARGET_CLANG_CFLAGS_arm64 += \
-fno-vectorize