[build] profile release and release-lto
This commit is contained in:
parent
40bcfe4a13
commit
8f4542159f
16
Cargo.toml
16
Cargo.toml
@ -17,8 +17,18 @@ unwrap_used = "warn"
|
|||||||
eyre = "0.6"
|
eyre = "0.6"
|
||||||
|
|
||||||
[profile.release]
|
[profile.release]
|
||||||
lto = true
|
debug = true
|
||||||
debug = false
|
debug-assertions = true
|
||||||
strip = true
|
overflow-checks = true
|
||||||
|
strip = false
|
||||||
|
lto = false
|
||||||
panic = "unwind"
|
panic = "unwind"
|
||||||
codegen-units = 1
|
codegen-units = 1
|
||||||
|
|
||||||
|
[profile.release-lto]
|
||||||
|
inherits = "release"
|
||||||
|
lto = true
|
||||||
|
debug = false
|
||||||
|
debug-assertions = false
|
||||||
|
overflow-checks = false
|
||||||
|
strip = true
|
||||||
|
Loading…
x
Reference in New Issue
Block a user