From 9ff375129b9a84b9589a5dbecc87117e0c92337b Mon Sep 17 00:00:00 2001 From: Lars Eggert Date: Sat, 16 Mar 2024 06:44:49 +0200 Subject: [PATCH] build: Enable "fat" LTO for release builds (#1751) Because that's what Firefox does: https://searchfox.org/mozilla-central/source/config/makefiles/rust.mk#95 --- Cargo.toml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Cargo.toml b/Cargo.toml index 35916da5b1..e5bec00796 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -25,6 +25,9 @@ rust-version = "1.74.0" [workspace.lints.clippy] pedantic = { level = "warn", priority = -1 } +[profile.release] +lto = "fat" + [profile.bench] # Inherits from the "release" profile, so just provide overrides here: # https://doc.rust-lang.org/cargo/reference/profiles.html#release