1
0
Fork 0
mirror of https://codeberg.org/Mo8it/dotfiles.git synced 2024-10-17 20:52:40 +00:00

Add Cargo config

This commit is contained in:
Mo 2023-09-14 23:21:38 +02:00
parent 5864f43ea2
commit d603765079

13
.cargo/config.toml Normal file
View file

@ -0,0 +1,13 @@
[target.x86_64-unknown-linux-gnu]
linker = "clang"
rustflags = ["-C", "link-arg=-fuse-ld=/usr/bin/mold"]
[build]
rustflags = [
"-C",
"target-cpu=native",
]
[profile.release]
lto = true
codegen-units = 1