Skip to content

Commit d1c78b1

Browse files
authored
Fix macOS arm64 and universal2 wheels (#33)
1 parent dc9f637 commit d1c78b1

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ clean:
3434

3535
.PHONY: c_lib
3636
c_lib:
37-
$(CXX) -c "ada_url/ada.cpp" -fPIC -std="c++17" -O2 -o "ada_url/ada.o"
37+
$(CXX) -c "ada_url/ada.cpp" -fPIC -std="c++17" -O2 -o "ada_url/ada.o" $(ARCHFLAGS)
3838

3939
.PHONY: package
4040
package: c_lib

pyproject.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,12 @@ build = [
2525
"pp38-*",
2626
"pp39-*",
2727
]
28-
before-all = "make c_lib"
2928

3029
[tool.cibuildwheel.linux]
3130
archs = ["x86_64", "aarch64"]
31+
before-all = "make c_lib"
3232

3333
[tool.cibuildwheel.macos]
3434
archs = ["x86_64", "universal2", "arm64"]
3535
environment = { MACOSX_DEPLOYMENT_TARGET="10.15" }
36+
before-build = "make clean && make c_lib"

0 commit comments

Comments
 (0)