mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2025-01-22 04:25:21 +00:00
build: enable size optimization for release profile
This reduces the binary size from 7.3M to 6.5M. Also the build time for a clean build shrinks from 1m28s to 1m14s on my development machine (an eight-core VM on Azure). This goes against the conventional wisdom but it is what it is. Signed-off-by: Wei Liu <liuwe@microsoft.com>
This commit is contained in:
parent
cb00dbe6ec
commit
9fe1643089
@ -14,6 +14,8 @@ rust-version = "1.60"
|
|||||||
|
|
||||||
[profile.release]
|
[profile.release]
|
||||||
lto = true
|
lto = true
|
||||||
|
codegen-units = 1
|
||||||
|
opt-level = "s"
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
anyhow = "1.0.65"
|
anyhow = "1.0.65"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user