Skip to content

Commit 5731f9f

Browse files
committed
Chore:adding linkers
1 parent 3c7dfa3 commit 5731f9f

File tree

1 file changed

+19
-1
lines changed

1 file changed

+19
-1
lines changed

.cargo/config.toml

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,22 @@ linker = "aarch64-linux-gnu-gcc"
33

44
[target.aarch64-apple-darwin]
55
linker = "clang"
6-
rustflags = ["-C", "link-arg=-fuse-ld=/usr/local/opt/llvm/bin/ld64.lld"]
6+
rustflags = ["-C", "link-arg=-fuse-ld=lld"]
7+
8+
[target.x86_64-pc-windows-msvc]
9+
rustflags = ["-C", "link-arg=-fuse-ld=lld"]
10+
11+
[target.x86_64-pc-windows-gnu]
12+
rustflags = ["-C", "link-arg=-fuse-ld=lld"]
13+
14+
[target.x86_64-unknown-linux-gnu]
15+
linker = "gcc"
16+
rustflags = ["-C", "link-arg=-fuse-ld=lld"]
17+
18+
[target.riscv64gc-unknown-linux-gnu]
19+
linker = "riscv64-linux-gnu-gcc"
20+
rustflags = ["-C", "link-arg=-fuse-ld=lld"]
21+
22+
[target.armv7-unknown-linux-gnueabihf]
23+
linker = "arm-linux-gnueabihf-gcc"
24+
rustflags = ["-C", "link-arg=-fuse-ld=lld"]

0 commit comments

Comments
 (0)