mirror of
https://github.com/aljazceru/kata-containers.git
synced 2026-02-23 23:44:29 +01: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",
|
"protocols",
|
||||||
"rustjail",
|
"rustjail",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
[profile.release]
|
||||||
|
lto = true
|
||||||
|
|||||||
Reference in New Issue
Block a user