We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 20882ce + b4009eb commit a99495fCopy full SHA for a99495f
1 file changed
setup.py
@@ -2,6 +2,7 @@
2
from io import open
3
4
from Cython.Build import cythonize
5
+import platform
6
from setuptools import Extension, setup
7
8
EXT_SOURCES = [
@@ -16,7 +17,10 @@
16
17
if sys.platform == "win32":
18
cflags = ["/O2"]
19
else:
- cflags = ["-O3", "-msse4.2"]
20
+ if platform.machine().lower() in ("x86_64", "amd64"):
21
+ cflags = ["-O3", "-msse4.2"]
22
+ else:
23
+ cflags = ["-O3", "-march=native"]
24
25
extensions = [Extension(
26
"metrohash",
0 commit comments