set macos link args to fix bin + lib combination by davidhewitt · Pull Request #351 · PyO3/setuptools-rust (original) (raw)

Adding a build.rs with pyo3_build_config::add_extension_module_link_args() should fix the macOS failures in the new pyproject.toml example.

I had a look if there was a way for us to do this directly in setuptools_rust, but I couldn't see an obvious solution.