From d92d2953ff886c70362194fc2d1cc22b77efa706 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=A9vin=20Commaille?= Date: Fri, 31 Mar 2023 16:02:41 +0200 Subject: [PATCH] build: Use thin LTO for release builds Fat LTO makes the debug symbols unusable due to a bug in rustc: https://github.com/rust-lang/rust/issues/66118. --- Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 52819660..8d6d3d74 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -7,7 +7,7 @@ rust-version = "1.65" [profile.release] debug = true -lto = true +lto = "thin" codegen-units = 1 [profile.dev.package."*"]