// Build script to ensure macOS dynamic lookup for Python symbols when
// building the PyO3 extension module inside a larger Cargo workspace.
// In theory, enabling the `extension-module` feature on PyO3 should add
// these flags automatically. However, in some workspace configurations
// (or with certain Cargo invocations like `cargo build -p torsh-python`),
// the linker flags may be missing, leading to undefined _Py* symbols.
//
// This script defensively re-adds the required flags on macOS so that
// unresolved Python symbols are resolved at runtime via the Python process
// loading the module.
//
// If PyO3 already injected these flags, re-specifying them is harmless.