Skip to content

Commit

Permalink
fix: Added rustc flags for MacOS compilation with PyO3
Browse files Browse the repository at this point in the history
GitOrigin-RevId: 7d865b13b7dceffc72c9786a03b47aec8cf6e2f4
  • Loading branch information
christos-h authored and oq-bot committed Jun 3, 2021
1 parent 9f61c57 commit f9f1648
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .cargo/config
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# https://docs.rs/pyo3/0.13.2/pyo3/#using-rust-from-python
[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",
]

0 comments on commit f9f1648

Please sign in to comment.