Index: platform_tools/android/tests/expectations/Android.mk |
diff --git a/platform_tools/android/tests/expectations/Android.mk b/platform_tools/android/tests/expectations/Android.mk |
index 854fa6b7e0d6f0f18e5161b070adea2860943cd1..f9af5af9ffb9ba354129542676ce02ce86f6df42 100644 |
--- a/platform_tools/android/tests/expectations/Android.mk |
+++ b/platform_tools/android/tests/expectations/Android.mk |
@@ -34,6 +34,11 @@ LOCAL_PATH:= $(call my-dir) |
include $(CLEAR_VARS) |
LOCAL_FDO_SUPPORT := true |
+ifneq ($(strip $($(LOCAL_2ND_ARCH_VAR_PREFIX)TARGET_FDO_CFLAGS)),) |
+ # This should be the last -Oxxx specified in LOCAL_CFLAGS |
+ LOCAL_CFLAGS += -O2 |
+endif |
+ |
LOCAL_ARM_MODE := thumb |
ifeq ($(TARGET_ARCH),arm) |
ifeq ($(ARCH_ARM_HAVE_VFP),true) |