Skip to content

Commit

Permalink
fix arm64
Browse files Browse the repository at this point in the history
  • Loading branch information
waahm7 committed Jul 17, 2024
1 parent dcdd2f8 commit 92d1c68
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions builder/core/host.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,15 @@ def current_os():


def current_arch():
if current_os() == 'linux':
if current_os() == 'linux' or current_os() == 'macos':
machine_id = os.uname()[4]
m = re.match(r'^(aarch64|armv[6-8])', machine_id.strip())
m = re.match(r'^(aarch64|armv[6-8]|arm64)', machine_id.strip())
if m:
arch = m.group(1)
if arch == 'aarch64':
arch = 'armv8'
return arch
return ('x64' if sys.maxsize > 2**32 else 'x86')
return 'x64' if sys.maxsize > 2 ** 32 else 'x86'


def current_platform():
Expand Down

0 comments on commit 92d1c68

Please sign in to comment.