Skip to content

Commit 053c695

Browse files
ben-c-at-mozphilimon-reset
authored andcommitted
fix error in previous division of machine archs (#544)
1 parent c259944 commit 053c695

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

collect_executables.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,16 @@ def get_fx_platform():
2424
if _system == "Darwin":
2525
return "mac"
2626
if _system == "Linux":
27+
# ARM specifications in uname().machine don't have 32/64
2728
if "64" in u.machine:
2829
return "linux-x86_64"
30+
elif "arm" in u.machine.lower():
31+
return "linux-aarch64"
2932
return "linux-i686"
3033
if _system == "Windows":
31-
if u.machine == "AMD64" and not environ.get("GITHUB_ACTIONS"):
34+
if "arm" in u.machine.lower():
3235
return "win64-aarch64"
33-
if "64" in u.machine:
36+
elif "64" in u.machine:
3437
return "win64"
3538
return "win32"
3639

0 commit comments

Comments
 (0)