Skip to content

Commit

Permalink
Add .cargo/config
Browse files Browse the repository at this point in the history
  • Loading branch information
shaolang committed Nov 29, 2024
1 parent 6729e6b commit 0d72e69
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions native/jaqex/.cargo/config
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
[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",
]

# See https://github.com/rust-lang/rust/issues/59302
[target.x86_64-unknown-linux-musl]
rustflags = [
"-C", "target-feature=-crt-static"
]

# See https://github.com/rust-lang/rust/issues/59302
[target.aarch64-unknown-linux-musl]
rustflags = [
"-C", "target-feature=-crt-static"
]

[profile.release]
lto = true

0 comments on commit 0d72e69

Please sign in to comment.