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
This commit is contained in:
Samuel Susla
2021-04-01 04:50:59 -07:00
committed by Facebook GitHub Bot
parent eb59cc2636
commit 9ef995a14a
98 changed files with 129 additions and 129 deletions
@@ -22,7 +22,7 @@ LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH)/
LOCAL_CFLAGS := \
-DLOG_TAG=\"Fabric\"
LOCAL_CFLAGS += -fexceptions -frtti -std=c++14 -Wall
LOCAL_CFLAGS += -fexceptions -frtti -std=c++17 -Wall
include $(BUILD_SHARED_LIBRARY)
@@ -14,7 +14,7 @@ rn_xplat_cxx_library(
compiler_flags = [
"-fexceptions",
"-frtti",
"-std=c++14",
"-std=c++17",
"-Wall",
],
fbandroid_allow_jni_merging = True,
@@ -22,7 +22,7 @@ LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH)/
LOCAL_CFLAGS := \
-DLOG_TAG=\"Fabric\"
LOCAL_CFLAGS += -fexceptions -frtti -std=c++14 -Wall
LOCAL_CFLAGS += -fexceptions -frtti -std=c++17 -Wall
include $(BUILD_SHARED_LIBRARY)
@@ -14,7 +14,7 @@ rn_xplat_cxx_library(
compiler_flags = [
"-fexceptions",
"-frtti",
"-std=c++14",
"-std=c++17",
"-Wall",
],
fbandroid_allow_jni_merging = True,
@@ -8,7 +8,7 @@ rn_xplat_cxx_library(
compiler_flags = [
"-fexceptions",
"-frtti",
"-std=c++14",
"-std=c++17",
"-Wall",
],
labels = ["supermodule:xplat/default/public.react_native.infra"],
@@ -13,7 +13,7 @@ LOCAL_C_INCLUDES := $(LOCAL_PATH)/reactperflogger
# Header search path for modules that depend on this module
LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH)
LOCAL_CFLAGS += -fexceptions -frtti -std=c++14 -Wall
LOCAL_CFLAGS += -fexceptions -frtti -std=c++17 -Wall
LOCAL_LDLIBS += -landroid
@@ -12,7 +12,7 @@ rn_xplat_cxx_library(
compiler_flags = [
"-fexceptions",
"-frtti",
"-std=c++14",
"-std=c++17",
"-Wall",
],
fbandroid_allow_jni_merging = True,
@@ -17,7 +17,7 @@ LOCAL_C_INCLUDES := $(LOCAL_PATH)/ReactCommon
# Header search path for modules that depend on this module
LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH)
LOCAL_CFLAGS += -fexceptions -frtti -std=c++14 -Wall
LOCAL_CFLAGS += -fexceptions -frtti -std=c++17 -Wall
LOCAL_SHARED_LIBRARIES = libfb libfbjni libreactnativeutilsjni
@@ -48,7 +48,7 @@ LOCAL_C_INCLUDES := $(LOCAL_PATH)/ReactCommon
# Header search path for modules that depend on this module
LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH)
LOCAL_CFLAGS += -fexceptions -frtti -std=c++14 -Wall
LOCAL_CFLAGS += -fexceptions -frtti -std=c++17 -Wall
LOCAL_SHARED_LIBRARIES = libfb libfbjni libreact_nativemodule_core
@@ -14,7 +14,7 @@ rn_xplat_cxx_library(
compiler_flags = [
"-fexceptions",
"-frtti",
"-std=c++14",
"-std=c++17",
"-Wall",
],
labels = ["supermodule:xplat/default/public.react_native.infra"],
@@ -52,7 +52,7 @@ rn_xplat_cxx_library(
compiler_flags = [
"-fexceptions",
"-frtti",
"-std=c++14",
"-std=c++17",
"-Wall",
],
fbandroid_deps = [
@@ -22,7 +22,7 @@ LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH)/
LOCAL_CFLAGS := \
-DLOG_TAG=\"ReacTNative\"
LOCAL_CFLAGS += -fexceptions -frtti -std=c++14 -Wall
LOCAL_CFLAGS += -fexceptions -frtti -std=c++17 -Wall
include $(BUILD_SHARED_LIBRARY)
@@ -14,7 +14,7 @@ rn_xplat_cxx_library(
compiler_flags = [
"-fexceptions",
"-frtti",
"-std=c++14",
"-std=c++17",
"-Wall",
],
fbandroid_allow_jni_merging = True,