File tree Expand file tree Collapse file tree
packages/react-native/scripts/cocoapods Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -12,15 +12,16 @@ class NewArchitectureHelper
1212 @@NewArchWarningEmitted = false # Used not to spam warnings to the user.
1313
1414 def self . set_clang_cxx_language_standard_if_needed ( installer )
15+ cxxBuildsettingsName = "CLANG_CXX_LANGUAGE_STANDARD"
1516 projects = installer . aggregate_targets
1617 . map { |t | t . user_project }
1718 . uniq { |p | p . path }
1819
1920 projects . each do |project |
20- Pod ::UI . puts ( "Setting CLANG_CXX_LANGUAGE_STANDARD to #{ Helpers ::Constants ::cxx_language_standard } on #{ project . path } " )
21+ Pod ::UI . puts ( "Setting #{ cxxBuildsettingsName } to #{ Helpers ::Constants ::cxx_language_standard } on #{ project . path } " )
2122
2223 project . build_configurations . each do |config |
23- config . build_settings [ "CLANG_CXX_LANGUAGE_STANDARD" ] = Helpers ::Constants ::cxx_language_standard
24+ config . build_settings [ cxxBuildsettingsName ] = Helpers ::Constants ::cxx_language_standard
2425 end
2526
2627 project . save ( )
You can’t perform that action at this time.
0 commit comments