mirror of
https://github.com/zoriya/react-native-svg.git
synced 2026-06-02 06:35:04 +00:00
Build renderer/components/rnsvg with -std=c++20 (#2141)
This commit is contained in:
+1
-1
@@ -27,7 +27,7 @@ Pod::Spec.new do |s|
|
|||||||
ss.header_dir = "rnsvg"
|
ss.header_dir = "rnsvg"
|
||||||
ss.pod_target_xcconfig = { "HEADER_SEARCH_PATHS" => "\"$(PODS_TARGET_SRCROOT)/common/cpp\"" }
|
ss.pod_target_xcconfig = { "HEADER_SEARCH_PATHS" => "\"$(PODS_TARGET_SRCROOT)/common/cpp\"" }
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
s.platforms = { :osx => "10.14", :ios => "10.0", :tvos => "9.2" }
|
s.platforms = { :osx => "10.14", :ios => "10.0", :tvos => "9.2" }
|
||||||
s.exclude_files = 'apple/Utils/RNSVGFabricConversions.h'
|
s.exclude_files = 'apple/Utils/RNSVGFabricConversions.h'
|
||||||
s.dependency 'React-Core'
|
s.dependency 'React-Core'
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ set(RNS_GENERATED_REACT_DIR ${RNS_GENERATED_JNI_DIR}/react/renderer/components/r
|
|||||||
add_compile_options(
|
add_compile_options(
|
||||||
-fexceptions
|
-fexceptions
|
||||||
-frtti
|
-frtti
|
||||||
-std=c++17
|
-std=c++20
|
||||||
-Wall
|
-Wall
|
||||||
-Wpedantic
|
-Wpedantic
|
||||||
-Wno-gnu-zero-variadic-macro-arguments
|
-Wno-gnu-zero-variadic-macro-arguments
|
||||||
|
|||||||
Reference in New Issue
Block a user