mirror of
https://github.com/dart-lang/sdk
synced 2024-10-06 14:49:43 +00:00
[tools] Allow update.py to run on mac arm machines
Change-Id: I293f493ec10465ec8c2af071aef7aebff44bdf0b Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/241692 Reviewed-by: William Hesse <whesse@google.com> Commit-Queue: Nicholas Shahan <nshahan@google.com>
This commit is contained in:
parent
651350bc3b
commit
f372f8cbbe
|
@ -75,8 +75,10 @@ def LinksForGitCLFormat():
|
|||
|
||||
def main(argv):
|
||||
arch_id = platform.machine()
|
||||
# Don't try to download binaries if we're on an arm machine.
|
||||
if arch_id.startswith('arm') or arch_id.startswith('aarch64'):
|
||||
# Don't try to download binaries if we're on an arm machine unless it is a
|
||||
# Mac arm machine because the x64 binaries work using rossetta translation.
|
||||
if ((arch_id.startswith('arm') and sys.platform != 'darwin') or
|
||||
arch_id.startswith('aarch64')):
|
||||
print('Not downloading buildtools binaries for ' + arch_id)
|
||||
return 0
|
||||
if sys.platform.startswith('win'):
|
||||
|
|
Loading…
Reference in a new issue