chromium,chromedriver: 129.0.6668.91 -> 129.0.6668.100
[NixPkgs.git] / pkgs / by-name / ab / abpoa / simd-arch.patch
blobeb30b5a5993f6cb421202a513650900f259fc9ad
1 diff --git a/setup.py b/setup.py
2 index c6fc019..49fb3c8 100644
3 --- a/setup.py
4 +++ b/setup.py
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"
14 else: # x86_64
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"
18 else:
19 @@ -27,7 +28,7 @@ else:
20 elif machine_arch in ["aarch32"]:
21 simd_flag = ['-march=armv8-a+simd', '-mfpu=auto -D__AVX2__']
22 else: # x86_64
23 - simd_flag=['-march=native']
24 + simd_flag=[]
25 if os.getenv('SSE4', False):
26 simd_flag=['-msse4.1']
27 elif os.getenv('SSE2', False):