From f88b1c668380ddcab8d528759cb495e39a5551c7 Mon Sep 17 00:00:00 2001 From: Sydhds Date: Wed, 14 Feb 2024 17:19:09 +0100 Subject: [PATCH] Enable Link Time Optimization for release_prebuilt profile (#4633) Co-authored-by: sydhds Co-authored-by: Leo-Besancon --- Cargo.toml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 0de9dd2bc54..8dd38255194 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -53,7 +53,8 @@ opt-level = 3 # Speed-up the CI # This profile is used for prebuilt binaries. [profile.release_prebuilt] inherits = "release" -codegen-units = 1 +codegen-units = 1 # Do not split into multiple codegen units, improve performance, may compile slower +lto = true # Enables Link Time Optimization, enabling more aggressive optimizations across the entire codebase # # Features #