Add possibility to override mac_toolchain via .gclient custom_vars.

This will allow "gclient sync" to pick up a new version of the mac
toolchain as documented at [1].

[1] - https://source.chromium.org/chromium/chromium/src/+/master:docs/mac_arm64.md

TBR=peah@webrtc.org

Bug: webrtc:11946
Change-Id: I2265f27a206fb1e1cbff6216a4d083c0c4817f8e
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/184364
Reviewed-by: Mirko Bonadei <mbonadei@webrtc.org>
Reviewed-by: Per Åhgren <peah@webrtc.org>
Commit-Queue: Mirko Bonadei <mbonadei@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#32125}
This commit is contained in:
Mirko Bonadei 2020-09-17 08:52:04 +02:00 committed by Commit Bot
parent 525f11b4c5
commit 4f55233cf7

3
DEPS
View File

@ -3105,7 +3105,8 @@ hooks = [
'name': 'mac_toolchain',
'pattern': '.',
'condition': 'checkout_mac',
'action': ['python', 'src/build/mac_toolchain.py'],
'action': ['python', 'src/build/mac_toolchain.py',
'--xcode-version', Var('mac_xcode_version')],
},
{
# Note: On Win, this should run after win_toolchain, as it may use it.