Skip to content

Commit 6f48105

Browse files
committed
avoid invalid condition
1 parent 2e6496b commit 6f48105

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

.github/workflows/wheels.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
with:
2222
python-version: '3.10'
2323
- name: Install cibuildwheel
24-
run: python -m pip install cibuildwheel==2.15.0
24+
run: python -m pip install cibuildwheel==2.19.1
2525
- name: Build wheels
2626
run: python -m cibuildwheel --output-dir dist
2727
env:

setup.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,8 @@ class BuildExt(build_ext):
9090

9191
if sys.platform == "darwin":
9292
if platform.machine() == "arm64":
93-
c_opts["unix"].remove("-march=native")
93+
if "-march=native" in c_opts["unix"]:
94+
c_opts["unix"].remove("-march=native")
9495
c_opts["unix"] += ["-stdlib=libc++", "-mmacosx-version-min=10.7"]
9596
link_opts["unix"] += ["-stdlib=libc++", "-mmacosx-version-min=10.7"]
9697
else:

0 commit comments

Comments
 (0)