Files
wehub-resource-sync 0d29a02500
CI / Rust (ubuntu-latest) (push) Failing after 1s
CI / Python (ubuntu-latest) (push) Failing after 0s
CI / Rust (macos-14) (push) Has been cancelled
CI / Rust (windows-latest) (push) Has been cancelled
CI / Python (macos-14) (push) Has been cancelled
CI / Python (windows-latest) (push) Has been cancelled
chore: import upstream snapshot with attribution
2026-07-13 12:23:17 +08:00

11 lines
557 B
Rust

fn main() {
// Emit the platform-correct linker arguments for a Python extension
// module. On macOS this passes `-undefined dynamic_lookup` so symbols
// from the Python interpreter (e.g. `Py_True`) resolve at load time
// instead of failing the link step. Without it, a plain `cargo build`
// on macOS fails with "symbol(s) not found for architecture arm64"
// (issue #92). Building via maturin already injects these args; this
// makes a bare `cargo build` work too.
pyo3_build_config::add_extension_module_link_args();
}