From c04ab921924037874e34c32bfe5a880d9819c380 Mon Sep 17 00:00:00 2001 From: Andy Street Date: Tue, 15 Nov 2016 08:28:31 -0800 Subject: [PATCH] Use -O3 to compile CSSLayout in open source Summary: This is how we compile internally Reviewed By: emilsjolander Differential Revision: D4182691 fbshipit-source-id: 314b1a1ead7d299677ce7f71549c986e1b796b3b --- ReactAndroid/src/main/jni/first-party/csslayoutjni/Android.mk | 2 +- ReactCommon/CSSLayout/Android.mk | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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)