1 diff --git a/setup.py b/setup.py
2 index c6fc019..49fb3c8 100644
5 @@ -14,11 +14,12 @@ machine_arch = os.popen("uname -m").readlines()[0].rsplit()[0]
7 if machine_system == "Darwin":
8 # note: see https://github.com/pypa/wheel/issues/406
9 - simd_flag = ['-march=native', '-D__AVX2__', '-mmacosx-version-min=10.9']
10 if machine_arch in ["aarch64", "arm64"]:
11 + simd_flag = ['-march=armv8-a+simd', '-D__AVX2__', '-mmacosx-version-min=10.9']
12 os.environ['_PYTHON_HOST_PLATFORM'] = "macosx-10.9-arm64"
13 os.environ['ARCHFLAGS'] = "-arch arm64"
15 + simd_flag = ['-msse2', '-mmacosx-version-min=10.9']
16 os.environ['_PYTHON_HOST_PLATFORM'] = "macosx-10.9-x86_64"
17 os.environ['ARCHFLAGS'] = "-arch x86_64"
19 @@ -27,7 +28,7 @@ else:
20 elif machine_arch in ["aarch32"]:
21 simd_flag = ['-march=armv8-a+simd', '-mfpu=auto -D__AVX2__']
23 - simd_flag=['-march=native']
25 if os.getenv('SSE4', False):
26 simd_flag=['-msse4.1']
27 elif os.getenv('SSE2', False):