mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Add support for C++17 in OSS
Summary: changelog: Add support for C++17 Reviewed By: cortinico Differential Revision: D34612257 fbshipit-source-id: 88a0307a750f2e0793a639b7a2b670a4571332fe
This commit is contained in:
committed by
Facebook GitHub Bot
parent
4eef075a58
commit
c2e4ae39b8
@@ -27,7 +27,7 @@ NDK_MODULE_PATH := $(APP_MK_DIR)$(HOST_DIRSEP)$(THIRD_PARTY_NDK_DIR)$(HOST_DIRSE
|
||||
APP_STL := c++_shared
|
||||
|
||||
APP_CFLAGS := -Wall -Werror -fexceptions -frtti -DWITH_INSPECTOR=1
|
||||
APP_CPPFLAGS := -std=c++1y
|
||||
APP_CPPFLAGS := -std=c++17
|
||||
# Make sure every shared lib includes a .note.gnu.build-id header
|
||||
APP_LDFLAGS := -Wl,--build-id
|
||||
|
||||
|
||||
@@ -19,7 +19,7 @@ oss_cxx_library(
|
||||
"-fexceptions",
|
||||
"-Wall",
|
||||
"-Werror",
|
||||
"-std=c++14",
|
||||
"-std=c++17",
|
||||
"-DDISABLE_CPUCAP",
|
||||
"-DDISABLE_XPLAT",
|
||||
],
|
||||
|
||||
@@ -22,7 +22,7 @@ LOCAL_C_INCLUDES := $(LOCAL_PATH)
|
||||
# ./../ == react
|
||||
LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH)/../..
|
||||
|
||||
LOCAL_CFLAGS += -fexceptions -frtti -Wno-unused-lambda-capture
|
||||
LOCAL_CFLAGS += -fexceptions -frtti -Wno-unused-lambda-capture -std=c++17
|
||||
|
||||
LOCAL_LDLIBS += -landroid
|
||||
|
||||
@@ -79,7 +79,7 @@ LOCAL_C_INCLUDES := $(LOCAL_PATH)
|
||||
# ./../ == react
|
||||
LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH)/../..
|
||||
|
||||
LOCAL_CFLAGS += -fexceptions -frtti -Wno-unused-lambda-capture
|
||||
LOCAL_CFLAGS += -fexceptions -frtti -Wno-unused-lambda-capture -std=c++17
|
||||
|
||||
LOCAL_LDLIBS += -landroid
|
||||
|
||||
|
||||
Reference in New Issue
Block a user