Add cargo configuration

This commit is contained in:
ErrorNoInternet 2023-01-07 21:07:24 +08:00
parent 01ee13a1dc
commit af7f8af688
Signed by untrusted user who does not match committer: ErrorNoInternet
GPG Key ID: 2486BFB7B1E6A4A3

10
.cargo/config.toml Normal file
View File

@ -0,0 +1,10 @@
[target.x86_64-unknown-linux-gnu]
linker = "/usr/bin/clang"
rustflags = ["-Clink-arg=-fuse-ld=lld"]
[target.x86_64-apple-darwin]
rustflags = ["-C", "link-arg=-fuse-ld=/usr/local/bin/zld"]
[target.x86_64-pc-windows-msvc]
linker = "rust-lld.exe"
rustflags = ["-Zshare-generics=y"]