mirror of
https://github.com/cargo-bins/cargo-binstall.git
synced 2025-04-20 20:48:43 +00:00
Use opt-level = "z"
for release
On M1 MacOS Darwin 21.5, this produces binary that is 0.3M smaller while taking 10s less to build. Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
This commit is contained in:
parent
3a30e870b0
commit
6324f9a7ca
1 changed files with 1 additions and 1 deletions
|
@ -78,7 +78,7 @@ mimalloc = ["dep:mimalloc"]
|
||||||
env_logger = "0.9.0"
|
env_logger = "0.9.0"
|
||||||
|
|
||||||
[profile.release]
|
[profile.release]
|
||||||
opt-level = "s"
|
opt-level = "z"
|
||||||
lto = true
|
lto = true
|
||||||
codegen-units = 1
|
codegen-units = 1
|
||||||
panic = "abort"
|
panic = "abort"
|
||||||
|
|
Loading…
Add table
Reference in a new issue