mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-08-15 22:53:43 +00:00
agent: enable lto flag for Cargo to get better optimized code
The lto setting controls the -C lto flag which controls LLVM's link time optimizations. LTO can produce better optimized code, using whole-program analysis, at the cost of longer linking time. https://doc.rust-lang.org/cargo/reference/profiles.html#lto Fixes: #1125 Signed-off-by: bin liu <bin@hyper.sh>
This commit is contained in:
parent
ac6868250a
commit
d6acc4c09c
@ -46,3 +46,6 @@ members = [
|
||||
"protocols",
|
||||
"rustjail",
|
||||
]
|
||||
|
||||
[profile.release]
|
||||
lto = true
|
||||
|
Loading…
Reference in New Issue
Block a user