meta: optimize builds with experimental compiler flags
Signed-off-by: NotAShelf <raf@notashelf.dev> Change-Id: Iec66d57dbad508080af9b00011d4b4276a6a6964
This commit is contained in:
parent
297d47d52c
commit
764aafa88d
1 changed files with 27 additions and 0 deletions
27
.cargo/config.toml
Normal file
27
.cargo/config.toml
Normal file
|
|
@ -0,0 +1,27 @@
|
||||||
|
[unstable]
|
||||||
|
build-std = ["std", "panic_abort", "core", "alloc"]
|
||||||
|
|
||||||
|
[build]
|
||||||
|
rustflags = [
|
||||||
|
"-Clto",
|
||||||
|
"-Zvirtual-function-elimination",
|
||||||
|
"-Zlocation-detail=none",
|
||||||
|
]
|
||||||
|
|
||||||
|
|
||||||
|
[profile.dev]
|
||||||
|
opt-level = 0
|
||||||
|
debug = 1
|
||||||
|
split-debuginfo = "unpacked"
|
||||||
|
incremental = true
|
||||||
|
|
||||||
|
[profile.release]
|
||||||
|
opt-level = "z"
|
||||||
|
debug = false
|
||||||
|
lto = true
|
||||||
|
codegen-units = 1
|
||||||
|
panic = "abort"
|
||||||
|
strip = true
|
||||||
|
incremental = false
|
||||||
|
|
||||||
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue