diff --git a/Makefile b/Makefile index d901402..fb57d15 100644 --- a/Makefile +++ b/Makefile @@ -34,7 +34,7 @@ clean: .PHONY: c_lib c_lib: - $(CXX) -c "ada_url/ada.cpp" -fPIC -std="c++17" -O2 -o "ada_url/ada.o" + $(CXX) -c "ada_url/ada.cpp" -fPIC -std="c++17" -O2 -o "ada_url/ada.o" $(ARCHFLAGS) .PHONY: package package: c_lib diff --git a/pyproject.toml b/pyproject.toml index 2cde92d..03a9572 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -25,11 +25,12 @@ build = [ "pp38-*", "pp39-*", ] -before-all = "make c_lib" [tool.cibuildwheel.linux] archs = ["x86_64", "aarch64"] +before-all = "make c_lib" [tool.cibuildwheel.macos] archs = ["x86_64", "universal2", "arm64"] environment = { MACOSX_DEPLOYMENT_TARGET="10.15" } +before-build = "make clean && make c_lib"