configs
This commit is contained in:
parent
2e0c42df8f
commit
43a3c2df5b
7 changed files with 59 additions and 63 deletions
39
users/tao/cargo.toml
Normal file
39
users/tao/cargo.toml
Normal file
|
|
@ -0,0 +1,39 @@
|
|||
[alias]
|
||||
rr = "run --release"
|
||||
|
||||
[build]
|
||||
target = "x86_64-unknown-linux-gnu"
|
||||
rustc-wrapper = "${pkgs.sccache}/bin/sccache"
|
||||
rustflags = ["-Z", "threads=8"]
|
||||
|
||||
[unstable]
|
||||
codegen-backend = true
|
||||
|
||||
[provile.dev]
|
||||
debug = 0
|
||||
strip = "debuginfo"
|
||||
opt-level = 1
|
||||
lto = "off"
|
||||
codegen-backend = "cranelift"
|
||||
|
||||
[profile.dev.package."*"]
|
||||
# slow clean build for faster incrementals
|
||||
opt-level = 3
|
||||
|
||||
[profile.release]
|
||||
incremental = true
|
||||
codegen-units = 1
|
||||
lto = "fat"
|
||||
|
||||
# [target.x86-unknown-linux-musl]
|
||||
# # linker = "musl-gcc"
|
||||
# linker = "clang"
|
||||
# rustflag = ["-C", "target-cpu=native", "link-arg=ld-path=${pkgs.mold}/bin/mold"]
|
||||
|
||||
[target.x86-unknown-linux-gnu]
|
||||
# linker = "musl-gcc"
|
||||
linker = "clang"
|
||||
rustflag = ["-C", "target-cpu=native", "link-arg=ld-path=${pkgs.mold}/bin/mold"]
|
||||
|
||||
# https://benw.is/posts/how-i-improved-my-rust-compile-times-by-seventy-five-percent
|
||||
# jonhoo
|
||||
Loading…
Add table
Add a link
Reference in a new issue