Skip to content

Commit 18c6e7a

Browse files
committed
setup: Tweak ARM64 detection
1 parent f07d2d7 commit 18c6e7a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

dss_setup_common.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import sys, os
1+
import sys, os, platform
22

33
# Not complete but should suffice for the moment
44
if 'linux' in sys.platform.lower():
@@ -14,7 +14,7 @@
1414
else:
1515
arch = 'x64' if (sys.maxsize > (1 << 32)) else 'x86'
1616

17-
if '-arm64' in os.environ.get('_PYTHON_HOST_PLATFORM', ''):
17+
if ('-arm64' in os.environ.get('_PYTHON_HOST_PLATFORM', '')) or platform.machine() == 'arm64':
1818
arch = 'arm64'
1919

2020
platform_short = ''.join(filter(lambda ch: ch.isalpha(), sys.platform))

0 commit comments

Comments
 (0)