Skip to content

Commit 29663f2

Browse files
committed
Add linker and rustflags configuration for Linux targets
1 parent 9ca4521 commit 29663f2

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.cargo/config.toml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,14 @@
11
[target.x86_64-pc-windows-msvc]
22
rustflags = ["-Ctarget-feature=+crt-static", "-Clink-arg=/STACK:8000000"]
33

4+
[target.x86_64-unknown-linux-gnu]
5+
linker = "clang"
6+
rustflags = ["-C", "link-arg=-fuse-ld=mold"]
7+
8+
[target.aarch64-unknown-linux-gnu]
9+
linker = "clang"
10+
rustflags = ["-C", "link-arg=-fuse-ld=mold"]
11+
412
[alias]
513
lint = "clippy -- -D warnings"
614
r = "run"

0 commit comments

Comments
 (0)