[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:
Zach Anderson 2018-03-01 22:12:29 +00:00 committed by commit-bot@chromium.org
parent 590d85876e
commit 7a084ee150

View file

@ -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: