Add configuration for cargo
This commit is contained in:
parent
65df9845f7
commit
19dae2f54d
1 changed files with 15 additions and 0 deletions
15
cargo/.cargo/config.toml
Normal file
15
cargo/.cargo/config.toml
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
[target.x86_64-unknown-linux-gnu]
|
||||||
|
linker = "clang"
|
||||||
|
rustflags = ["-C", "link-arg=-fuse-ld=mold"]
|
||||||
|
|
||||||
|
[build]
|
||||||
|
rustc-wrapper = "sccache"
|
||||||
|
|
||||||
|
[unstable]
|
||||||
|
codegen-backend = true
|
||||||
|
|
||||||
|
[profile.debug]
|
||||||
|
codegen-backend = "cranelift"
|
||||||
|
|
||||||
|
[profile.release]
|
||||||
|
lto = true
|
Loading…
Reference in a new issue