Skip to content

Commit 788dd2e

Browse files
committed
[LOCAL] Fix cherry-pick error
Looks like #46787 wasn't picked correctly.
1 parent 3f8d1fa commit 788dd2e

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

packages/react-native/scripts/cocoapods/new_architecture.rb

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff 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()

0 commit comments

Comments
 (0)