mirror of
https://github.com/mollyim/webrtc.git
synced 2025-05-19 16:47:50 +01:00
Use hermetic toolchain on Mac, except for local iOS builds
Copied from https://chromium.googlesource.com/chromium/src/+/d04b06a98/build_overrides/build.gni BUG=chromium:763924 Review-Url: https://codereview.webrtc.org/3013003002 Cr-Commit-Position: refs/heads/master@{#19781}
This commit is contained in:
parent
357429dd1e
commit
370c6d5694
2 changed files with 13 additions and 3 deletions
3
.gn
3
.gn
|
@ -25,7 +25,8 @@ check_targets = [ "//webrtc/*" ]
|
||||||
# These are the list of GN files that run exec_script. This whitelist exists
|
# These are the list of GN files that run exec_script. This whitelist exists
|
||||||
# to force additional review for new uses of exec_script, which is strongly
|
# to force additional review for new uses of exec_script, which is strongly
|
||||||
# discouraged except for gypi_to_gn calls.
|
# discouraged except for gypi_to_gn calls.
|
||||||
exec_script_whitelist = build_dotfile_settings.exec_script_whitelist
|
exec_script_whitelist = build_dotfile_settings.exec_script_whitelist +
|
||||||
|
[ "//build_overrides/build.gni" ]
|
||||||
|
|
||||||
default_args = {
|
default_args = {
|
||||||
# Webrtc does not support component builds because we are not using the
|
# Webrtc does not support component builds because we are not using the
|
||||||
|
|
|
@ -35,5 +35,14 @@ lint_suppressions_file = "//tools_webrtc/android/suppressions.xml"
|
||||||
# so we just ignore that assert. See https://crbug.com/648948 for more info.
|
# so we just ignore that assert. See https://crbug.com/648948 for more info.
|
||||||
ignore_elf32_limitations = true
|
ignore_elf32_limitations = true
|
||||||
|
|
||||||
# Use bundled hermetic Xcode installation maintainted by Chromium.
|
# Use bundled hermetic Xcode installation maintainted by Chromium,
|
||||||
use_system_xcode = false
|
# except for local iOS builds where it's unsupported.
|
||||||
|
if (host_os == "mac") {
|
||||||
|
_result = exec_script("//build/mac/should_use_hermetic_xcode.py",
|
||||||
|
[ target_os ],
|
||||||
|
"value")
|
||||||
|
assert(_result != 2,
|
||||||
|
"Do not allow building targets with the default" +
|
||||||
|
"hermetic toolchain if the minimum OS version is not met.")
|
||||||
|
use_system_xcode = _result == 0
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in a new issue