Skip to content

Commit

Permalink
Fix cargo config
Browse files Browse the repository at this point in the history
  • Loading branch information
moogle19 committed Jan 31, 2023
1 parent a03a11c commit 14c2371
Showing 1 changed file with 16 additions and 8 deletions.
24 changes: 16 additions & 8 deletions native/excoding/.cargo/config
Original file line number Diff line number Diff line change
@@ -1,18 +1,26 @@
[target.'cfg(target_os = "macos")']
[target.x86_64-apple-darwin]
rustflags = [
"-C",
"link-arg=-undefined",
"-C",
"link-arg=dynamic_lookup",
"-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",
"-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"
]

# Provides a small build size, but takes more time to build.
[profile.release]
lto = true

0 comments on commit 14c2371

Please sign in to comment.