Skip to content

Commit

Permalink
Fix nemo-python build on macOS (#551)
Browse files Browse the repository at this point in the history
  • Loading branch information
mmarx authored Nov 10, 2024
2 parents 38a4860 + 20842dd commit 22e047b
Show file tree
Hide file tree
Showing 6 changed files with 493 additions and 217 deletions.
14 changes: 14 additions & 0 deletions .cargo/config.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# These are required on macOS, as the extension cannot be linked
# against libpython. See also
# https://pyo3.rs/v0.14.2/building_and_distribution.html#macos
[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",
]
Loading

0 comments on commit 22e047b

Please sign in to comment.