Inhibit warning in 3p libraries (#46464)

Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/46464

React Native uses some 3P libraries that are emitting some warnings for which we can't do anything about.

This change suppress those warnings.

## Changelog:
[Internal] - Suppress 3p warnings

Reviewed By: cortinico

Differential Revision: D62582960

fbshipit-source-id: 79e8c28725177f5f47359da86f865e770dcf7c7b
This commit is contained in:
Riccardo Cipolleschi
2024-09-13 08:19:55 -07:00
committed by Facebook GitHub Bot
parent f529fe4876
commit 62d4768984
6 changed files with 12 additions and 3 deletions
@@ -36,7 +36,8 @@ Pod::Spec.new do |spec|
spec.pod_target_xcconfig = {
"CLANG_CXX_LANGUAGE_STANDARD" => "c++20",
"CLANG_CXX_LIBRARY" => "compiler-default"
"CLANG_CXX_LIBRARY" => "compiler-default",
"GCC_WARN_INHIBIT_ALL_WARNINGS" => "YES" # Disable warnings because we don't control this library
}
spec.ios.vendored_frameworks = "destroot/Library/Frameworks/ios/hermes.framework"
@@ -25,6 +25,7 @@ Pod::Spec.new do |spec|
spec.pod_target_xcconfig = {
"DEFINES_MODULE" => "YES",
"GCC_WARN_INHIBIT_ALL_WARNINGS" => "YES" # Disable warnings because we don't control this library
}
# Pinning to the same version as React.podspec.
@@ -86,7 +86,8 @@ Pod::Spec.new do |spec|
"CLANG_CXX_LANGUAGE_STANDARD" => rct_cxx_language_standard(),
"HEADER_SEARCH_PATHS" => "\"$(PODS_TARGET_SRCROOT)\" \"$(PODS_ROOT)/boost\" \"$(PODS_ROOT)/DoubleConversion\" \"$(PODS_ROOT)/fmt/include\"",
# In dynamic framework (use_frameworks!) mode, ignore the unused and undefined boost symbols when generating the library.
"OTHER_LDFLAGS" => "\"-Wl,-U,_jump_fcontext\" \"-Wl,-U,_make_fcontext\""
"OTHER_LDFLAGS" => "\"-Wl,-U,_jump_fcontext\" \"-Wl,-U,_make_fcontext\"",
"GCC_WARN_INHIBIT_ALL_WARNINGS" => "YES" # Disable warnings because we don't control this library
}
# TODO: The boost spec should really be selecting these files so that dependents of Folly can also access the required headers.
@@ -27,4 +27,8 @@ Pod::Spec.new do |spec|
spec.header_mappings_dir = 'boost/boost'
spec.resource_bundles = {'boost_privacy' => 'boost/PrivacyInfo.xcprivacy'}
spec.pod_target_xcconfig = {
"GCC_WARN_INHIBIT_ALL_WARNINGS" => "YES" # Disable warnings because we don't control this library
}
end
@@ -19,6 +19,7 @@ Pod::Spec.new do |spec|
}
spec.pod_target_xcconfig = {
"CLANG_CXX_LANGUAGE_STANDARD" => rct_cxx_language_standard(),
"GCC_WARN_INHIBIT_ALL_WARNINGS" => "YES" # Disable warnings because we don't control this library
}
spec.platforms = min_supported_versions
spec.libraries = "c++"
@@ -37,7 +37,8 @@ Pod::Spec.new do |spec|
spec.pod_target_xcconfig = {
"USE_HEADERMAP" => "NO",
"HEADER_SEARCH_PATHS" => "$(PODS_TARGET_SRCROOT)/src",
"DEFINES_MODULE" => "YES"
"DEFINES_MODULE" => "YES",
"GCC_WARN_INHIBIT_ALL_WARNINGS" => "YES" # Disable warnings because we don't control this library
}
# Pinning to the same version as React.podspec.