diff --git a/ReactAndroid/src/main/jni/first-party/csslayoutjni/Android.mk b/ReactAndroid/src/main/jni/first-party/csslayoutjni/Android.mk index da78c7a38..125a7ba9d 100644 --- a/ReactAndroid/src/main/jni/first-party/csslayoutjni/Android.mk +++ b/ReactAndroid/src/main/jni/first-party/csslayoutjni/Android.mk @@ -9,7 +9,7 @@ LOCAL_SRC_FILES := \ LOCAL_C_INCLUDES := $(LOCAL_PATH)/jni -LOCAL_CFLAGS += -Wall -Werror -fvisibility=hidden -fexceptions -frtti +LOCAL_CFLAGS += -Wall -Werror -fvisibility=hidden -fexceptions -frtti -O3 CXX11_FLAGS := -std=c++11 LOCAL_CFLAGS += $(CXX11_FLAGS) LOCAL_EXPORT_CPPFLAGS := $(CXX11_FLAGS) diff --git a/ReactCommon/CSSLayout/Android.mk b/ReactCommon/CSSLayout/Android.mk index 6b29ef6fd..8d9c94559 100644 --- a/ReactCommon/CSSLayout/Android.mk +++ b/ReactCommon/CSSLayout/Android.mk @@ -11,6 +11,6 @@ LOCAL_SRC_FILES := \ LOCAL_C_INCLUDES := $(LOCAL_PATH) LOCAL_EXPORT_C_INCLUDES := $(LOCAL_C_INCLUDES) -LOCAL_CFLAGS := -Wall -Werror -fexceptions -frtti -std=c99 +LOCAL_CFLAGS := -Wall -Werror -fexceptions -frtti -std=c99 -O3 include $(BUILD_STATIC_LIBRARY)