From 7300c7ceda27cd757a7b1961eab9bbf9c2946024 Mon Sep 17 00:00:00 2001 From: Alexander Zaitsev Date: Fri, 29 Nov 2024 12:07:04 +0300 Subject: [PATCH] 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 --- Cargo.toml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Cargo.toml b/Cargo.toml index fa3ac50ba..eef97373c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -13,3 +13,6 @@ members = ["rust/scx_stats", "scheds/rust/scx_layered", "scheds/rust/scx_mitosis"] resolver = "2" + +[profile.release] +lto = true