Skip to content

Commit

Permalink
fix: fix Darwin compilation
Browse files Browse the repository at this point in the history
Adding target configurations to ./.cargo/config, instead of
./Cargo.toml fixes the issues with compilation on Darwin.
  • Loading branch information
ajaxbits authored and vhyrro committed Jun 27, 2024
1 parent b57fc5f commit 086f847
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 12 deletions.
11 changes: 11 additions & 0 deletions .cargo/config
Original file line number Diff line number Diff line change
@@ -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",
]
12 changes: 0 additions & 12 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,3 @@ mlua = { version = "0.9.6", features = ["module", "serialize"] }
serde = "1.0"
toml_edit = "0.22.9"
toml = "0.8.12"

[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 086f847

Please sign in to comment.