mirror of
https://github.com/dart-lang/sdk
synced 2024-09-05 16:41:07 +00:00
[infra] Don't try to download buildtools binaries on arm
Change-Id: Ieea8c822a00ef36b0e457e363973dba00c5b9bc4 Reviewed-on: https://dart-review.googlesource.com/44602 Reviewed-by: Zach Anderson <zra@google.com> Commit-Queue: Zach Anderson <zra@google.com>
This commit is contained in:
parent
590d85876e
commit
7a084ee150
|
@ -6,6 +6,7 @@
|
|||
"""Pulls down tools required to build Dart."""
|
||||
|
||||
import os
|
||||
import platform
|
||||
import subprocess
|
||||
import shutil
|
||||
import sys
|
||||
|
@ -100,6 +101,11 @@ def CopyClangFormat():
|
|||
|
||||
|
||||
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'):
|
||||
print('Not downloading buildtools binaries for ' + arch_id)
|
||||
return 0
|
||||
if sys.platform.startswith('win'):
|
||||
result = UpdateGNOnWindows()
|
||||
if result != 0:
|
||||
|
|
Loading…
Reference in a new issue