mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-09-23 01:37:27 +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:
@@ -46,3 +46,6 @@ members = [
|
||||
"protocols",
|
||||
"rustjail",
|
||||
]
|
||||
|
||||
[profile.release]
|
||||
lto = true
|
||||
|
Reference in New Issue
Block a user