aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Transforms/Scalar/Android.mk
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Transforms/Scalar/Android.mk')
-rw-r--r--lib/Transforms/Scalar/Android.mk4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/Transforms/Scalar/Android.mk b/lib/Transforms/Scalar/Android.mk
index d2e1478..d79fabe 100644
--- a/lib/Transforms/Scalar/Android.mk
+++ b/lib/Transforms/Scalar/Android.mk
@@ -59,9 +59,7 @@ LOCAL_MODULE:= libLLVMScalarOpts
# Override the default optimization level to work around a SIGSEGV
# on x86 target builds for SROA.cpp.
# Bug: 8047767
-ifeq ($(TARGET_ARCH),x86)
-LOCAL_CFLAGS += -O1
-endif
+LOCAL_CFLAGS_x86 += -O1
LOCAL_MODULE_TAGS := optional