Skip to content

Commit 862e6ee

Browse files
author
Alex Roitman
authored
Keep -msse4.2 for amd64
1 parent ac507a2 commit 862e6ee

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

setup.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,10 @@
1616
if sys.platform == "win32":
1717
cflags = ["/O2"]
1818
else:
19-
cflags = ["-O3", "-march=native"]
19+
if platform.machine().lower() in ("x86_64", "amd64"):
20+
cflags = ["-O3", "-msse4.2"]
21+
else:
22+
cflags = ["-O3", "-march=native"]
2023

2124
extensions = [Extension(
2225
"metrohash",

0 commit comments

Comments
 (0)