Skip to content

Commit f0bec35

Browse files
committed
Skip sse and avx flags on aarch64
1 parent 0fdbb51 commit f0bec35

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

setup.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,9 @@
2424
if have_cflags:
2525
# respect compiler options set by user
2626
pass
27-
elif os.name == 'posix':
27+
elif os.name == 'posix' and os.uname()[4] != 'aarch64':
28+
# These flags aren't recognised by gcc on aarch64
29+
# (at least when we build the aarch64 wheens on GitHub actions)
2830
if disable_sse2:
2931
base_compile_args.append('-mno-sse2')
3032
elif have_sse2:

0 commit comments

Comments
 (0)