From 41ec80bf8c81fb528596efcde5f379c71498d391 Mon Sep 17 00:00:00 2001 From: Mathieu Duponchelle Date: Tue, 24 Sep 2024 16:29:33 +0200 Subject: [PATCH] Cargo.toml: turn lto off for dev profile Turning on opt-level=1 is necessary to make things reasonably fast, but it also turns on lto which since thinlto became enabled by default slows down compile times by a factor of 2 compared to lto off. Part-of: --- Cargo.toml | 1 + 1 file changed, 1 insertion(+) diff --git a/Cargo.toml b/Cargo.toml index 284e9035..271983ec 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -111,6 +111,7 @@ panic = 'unwind' [profile.dev] opt-level = 1 +lto = "off" [workspace.package] version = "0.12.9"