mirror of
https://github.com/cargo-bins/cargo-binstall.git
synced 2025-04-24 22:30:03 +00:00
Set opt-level
for release to s
O3 mostly enables float optimization, more aggressive loop unrolling and function inline. O2 is probably OK, but I want to reduce the binary size a bit by using opt level "s". Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
This commit is contained in:
parent
caf6f3930b
commit
267307fa28
1 changed files with 1 additions and 0 deletions
|
@ -69,6 +69,7 @@ guess_host_triple = "0.1.3"
|
|||
env_logger = "0.9.0"
|
||||
|
||||
[profile.release]
|
||||
opt-level = "s"
|
||||
lto = true
|
||||
codegen-units = 1
|
||||
panic = "abort"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue