Skip to content

Commit

Permalink
More comprehensive is_arm check
Browse files Browse the repository at this point in the history
Apparently on some Linux machines platform.machine() is 'aarch64' not
'arm64'.
  • Loading branch information
kovidgoyal committed Dec 1, 2023
1 parent f46425c commit f2075f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
is_netbsd = 'netbsd' in _plat
is_dragonflybsd = 'dragonfly' in _plat
is_bsd = is_freebsd or is_netbsd or is_dragonflybsd or is_openbsd
is_arm = platform.processor() == 'arm' or platform.machine() == 'arm64'
is_arm = platform.processor() == 'arm' or platform.machine() in ('arm64', 'aarch64')
Env = glfw.Env
env = Env()
PKGCONFIG = os.environ.get('PKGCONFIG_EXE', 'pkg-config')
Expand Down

0 comments on commit f2075f9

Please sign in to comment.