From ed3b7ebf074a82588341cbd59576dfec4e2fd785 Mon Sep 17 00:00:00 2001 From: Luca Barbato Date: Thu, 14 Jul 2022 11:04:37 +0200 Subject: [PATCH] Add a release-no-lto profile Workaround for #2960, because of rust-lang/rust#98302 --- Cargo.toml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Cargo.toml b/Cargo.toml index 38a6fbdcc6..f0097ab8ad 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -166,6 +166,11 @@ debug = true incremental = true lto = "thin" +# windows-gnu should use it until rust-lang/rust#98302 is not fixed +[profile.release-no-lto] +inherits = "release" +lto = "off" + [profile.bench] incremental = true