Skip to content

Commit

Permalink
download: when not explicitly giving a platform to download, pick x86…
Browse files Browse the repository at this point in the history
…_64 on arm64 Windows

Until we have native builds, it's better to default to using emulation
with the x86_64 than fail to download.
  • Loading branch information
glandium committed Sep 6, 2024
1 parent adb1eed commit 2304973
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions download.py
Original file line number Diff line number Diff line change
Expand Up @@ -361,6 +361,8 @@ def main(args):
system = args.system or platform.system()
machine = args.machine or platform.machine()
ptform = normalize_platform(system, machine)
if ptform == ("Windows", "arm64"):
ptform = ("Windows", "x86_64")
if ptform not in AVAILABLE:
print("No download available for %s/%s" % ptform, file=sys.stderr)
return 1
Expand Down

0 comments on commit 2304973

Please sign in to comment.