From 9471ca427a216107f9bbd0bccc68017f3eee02f2 Mon Sep 17 00:00:00 2001 From: Cian Hughes Date: Fri, 19 Jun 2026 14:28:50 +0100 Subject: [PATCH] fix: add macos dynamic lookup linker flags for pyo3 --- .cargo/config.toml | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 .cargo/config.toml diff --git a/.cargo/config.toml b/.cargo/config.toml new file mode 100644 index 0000000..d47f983 --- /dev/null +++ b/.cargo/config.toml @@ -0,0 +1,11 @@ +[target.x86_64-apple-darwin] +rustflags = [ + "-C", "link-arg=-undefined", + "-C", "link-arg=dynamic_lookup", +] + +[target.aarch64-apple-darwin] +rustflags = [ + "-C", "link-arg=-undefined", + "-C", "link-arg=dynamic_lookup", +]