mirror of
https://seed.radicle.dev/rad:z3gqcJUoA1n9HaHKufZs5FCSGazv5.git
synced 2026-10-18 19:10:30 +08:00
30 lines
841 B
TOML
30 lines
841 B
TOML
[target.x86_64-unknown-linux-musl]
|
|
rustflags = [
|
|
"-C", "codegen-units=1",
|
|
"-C", "incremental=false",
|
|
"-C", "opt-level=3",
|
|
]
|
|
|
|
[target.aarch64-unknown-linux-musl]
|
|
rustflags = [
|
|
"-C", "codegen-units=1",
|
|
"-C", "incremental=false",
|
|
"-C", "opt-level=3",
|
|
]
|
|
|
|
# Both `libgit2-sys` and `libc` link `iconv` on Apple targets, so `rustc` passes
|
|
# `-liconv` twice. Apple's `ld` deduplicates, but Zig does not, and
|
|
# emits two `LC_LOAD_DYLIB` commands for `/usr/lib/libiconv.2.dylib`.
|
|
# `dyld` on macOS 26 refuses to load such a binary ("duplicate linked dylib"),
|
|
# while older versions tolerate it.
|
|
# `-dead_strip_dylibs` drops the redundant entry.
|
|
[target.x86_64-apple-darwin]
|
|
rustflags = [
|
|
"-C", "link-arg=-Wl,-dead_strip_dylibs",
|
|
]
|
|
|
|
[target.aarch64-apple-darwin]
|
|
rustflags = [
|
|
"-C", "link-arg=-Wl,-dead_strip_dylibs",
|
|
]
|