Skip to content

Commit 9ef995a

Browse files
sammy-SCfacebook-github-bot
authored andcommitted
Enable C++ 17 in React Native
Summary: Changelog: [Internal] enable support for C++ 17. C++ 17 in React Native targets. Short and comprehensive list of C++ features: https://github.com/AnthonyCalandra/modern-cpp-features#c17-language-features Reviewed By: JoshuaGross Differential Revision: D27431145 fbshipit-source-id: e8da6fe9d70e9b7343a8caec21cdbeb043478575
1 parent eb59cc2 commit 9ef995a

File tree

98 files changed

+129
-129
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

98 files changed

+129
-129
lines changed

ReactAndroid/src/main/java/com/facebook/react/common/mapbuffer/jni/Android.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH)/
2222
LOCAL_CFLAGS := \
2323
-DLOG_TAG=\"Fabric\"
2424

25-
LOCAL_CFLAGS += -fexceptions -frtti -std=c++14 -Wall
25+
LOCAL_CFLAGS += -fexceptions -frtti -std=c++17 -Wall
2626

2727
include $(BUILD_SHARED_LIBRARY)
2828

ReactAndroid/src/main/java/com/facebook/react/common/mapbuffer/jni/BUCK

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ rn_xplat_cxx_library(
1414
compiler_flags = [
1515
"-fexceptions",
1616
"-frtti",
17-
"-std=c++14",
17+
"-std=c++17",
1818
"-Wall",
1919
],
2020
fbandroid_allow_jni_merging = True,

ReactAndroid/src/main/java/com/facebook/react/fabric/jni/Android.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH)/
2222
LOCAL_CFLAGS := \
2323
-DLOG_TAG=\"Fabric\"
2424

25-
LOCAL_CFLAGS += -fexceptions -frtti -std=c++14 -Wall
25+
LOCAL_CFLAGS += -fexceptions -frtti -std=c++17 -Wall
2626

2727
include $(BUILD_SHARED_LIBRARY)
2828

ReactAndroid/src/main/java/com/facebook/react/fabric/jni/BUCK

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ rn_xplat_cxx_library(
1414
compiler_flags = [
1515
"-fexceptions",
1616
"-frtti",
17-
"-std=c++14",
17+
"-std=c++17",
1818
"-Wall",
1919
],
2020
fbandroid_allow_jni_merging = True,

ReactAndroid/src/main/java/com/facebook/react/modules/blob/jni/BUCK

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ rn_xplat_cxx_library(
88
compiler_flags = [
99
"-fexceptions",
1010
"-frtti",
11-
"-std=c++14",
11+
"-std=c++17",
1212
"-Wall",
1313
],
1414
labels = ["supermodule:xplat/default/public.react_native.infra"],

ReactAndroid/src/main/java/com/facebook/react/reactperflogger/jni/Android.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ LOCAL_C_INCLUDES := $(LOCAL_PATH)/reactperflogger
1313
# Header search path for modules that depend on this module
1414
LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH)
1515

16-
LOCAL_CFLAGS += -fexceptions -frtti -std=c++14 -Wall
16+
LOCAL_CFLAGS += -fexceptions -frtti -std=c++17 -Wall
1717

1818
LOCAL_LDLIBS += -landroid
1919

ReactAndroid/src/main/java/com/facebook/react/reactperflogger/jni/BUCK

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ rn_xplat_cxx_library(
1212
compiler_flags = [
1313
"-fexceptions",
1414
"-frtti",
15-
"-std=c++14",
15+
"-std=c++17",
1616
"-Wall",
1717
],
1818
fbandroid_allow_jni_merging = True,

ReactAndroid/src/main/java/com/facebook/react/turbomodule/core/jni/Android.mk

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ LOCAL_C_INCLUDES := $(LOCAL_PATH)/ReactCommon
1717
# Header search path for modules that depend on this module
1818
LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH)
1919

20-
LOCAL_CFLAGS += -fexceptions -frtti -std=c++14 -Wall
20+
LOCAL_CFLAGS += -fexceptions -frtti -std=c++17 -Wall
2121

2222
LOCAL_SHARED_LIBRARIES = libfb libfbjni libreactnativeutilsjni
2323

@@ -48,7 +48,7 @@ LOCAL_C_INCLUDES := $(LOCAL_PATH)/ReactCommon
4848
# Header search path for modules that depend on this module
4949
LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH)
5050

51-
LOCAL_CFLAGS += -fexceptions -frtti -std=c++14 -Wall
51+
LOCAL_CFLAGS += -fexceptions -frtti -std=c++17 -Wall
5252

5353
LOCAL_SHARED_LIBRARIES = libfb libfbjni libreact_nativemodule_core
5454

ReactAndroid/src/main/java/com/facebook/react/turbomodule/core/jni/BUCK

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ rn_xplat_cxx_library(
1414
compiler_flags = [
1515
"-fexceptions",
1616
"-frtti",
17-
"-std=c++14",
17+
"-std=c++17",
1818
"-Wall",
1919
],
2020
labels = ["supermodule:xplat/default/public.react_native.infra"],
@@ -52,7 +52,7 @@ rn_xplat_cxx_library(
5252
compiler_flags = [
5353
"-fexceptions",
5454
"-frtti",
55-
"-std=c++14",
55+
"-std=c++17",
5656
"-Wall",
5757
],
5858
fbandroid_deps = [

ReactAndroid/src/main/java/com/facebook/react/uimanager/jni/Android.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH)/
2222
LOCAL_CFLAGS := \
2323
-DLOG_TAG=\"ReacTNative\"
2424

25-
LOCAL_CFLAGS += -fexceptions -frtti -std=c++14 -Wall
25+
LOCAL_CFLAGS += -fexceptions -frtti -std=c++17 -Wall
2626

2727
include $(BUILD_SHARED_LIBRARY)
2828

0 commit comments

Comments
 (0)