feat: enable LTO

Enable Link-Time Optimization (LTO) for Rust schedulers. It improves the
binary size and allows to a compiler perform more aggressive
optimizations.

More details in https://github.com/sched-ext/scx/issues/1010
This commit is contained in:
Alexander Zaitsev 2024-11-29 12:07:04 +03:00
parent 5b57cdf3ad
commit 59ad671520

View File

@ -13,3 +13,6 @@ members = ["rust/scx_stats",
"scheds/rust/scx_layered",
"scheds/rust/scx_mitosis"]
resolver = "2"
[profile.release]
lto = true