dotfiles/.cargo/config.toml.cgt

12 lines
279 B
Text

<! local ncpus = tonumber(opt.system "nproc") !>
[target.x86_64-unknown-linux-gnu]
linker = "/usr/bin/clang"
rustflags = ["-Clink-arg=-fuse-ld=lld"]
[profile.release]
lto = true
opt-level = 3
codegen-units = <% math.min(ncpus, 4) %>
[profile.debug]
codegen-units = <% ncpus %>