Skip to content

Commit 14c2371

Browse files
committed
Fix cargo config
1 parent a03a11c commit 14c2371

File tree

1 file changed

+16
-8
lines changed

1 file changed

+16
-8
lines changed

native/excoding/.cargo/config

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,26 @@
1-
[target.'cfg(target_os = "macos")']
1+
[target.x86_64-apple-darwin]
22
rustflags = [
3-
"-C",
4-
"link-arg=-undefined",
5-
"-C",
6-
"link-arg=dynamic_lookup",
3+
"-C", "link-arg=-undefined",
4+
"-C", "link-arg=dynamic_lookup",
5+
]
6+
7+
[target.aarch64-apple-darwin]
8+
rustflags = [
9+
"-C", "link-arg=-undefined",
10+
"-C", "link-arg=dynamic_lookup",
711
]
812

913
# See https://github.com/rust-lang/rust/issues/59302
1014
[target.x86_64-unknown-linux-musl]
1115
rustflags = [
12-
"-C",
13-
"target-feature=-crt-static",
16+
"-C", "target-feature=-crt-static"
17+
]
18+
19+
# See https://github.com/rust-lang/rust/issues/59302
20+
[target.aarch64-unknown-linux-musl]
21+
rustflags = [
22+
"-C", "target-feature=-crt-static"
1423
]
1524

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

0 commit comments

Comments
 (0)