From bc4dbb86d79b7a5033192d95ea0f6285049da7d6 Mon Sep 17 00:00:00 2001 From: x100111010 <167847953+x100111010@users.noreply.github.com> Date: Sat, 14 Sep 2024 00:04:23 +0200 Subject: [PATCH] Release builds will use lto = false instead of thin * breaks x86_64-pc-windows-gnullvm target on Windows as with llvm optimization it is impossible to link clang libc++ statically. The gnullvm target is needed as it will link ucrt instead of msvc and allow running it without VC runtime. In theory it should make a fix possible for: kaspanet/rusty-kaspa#417 * occasionally lead to node crashes in futures crate, especially when mixed with unsafe and C/C++ code. It is hard to reproduce, but at least with the from scratch reproduces the crash relatively often. --- Cargo.toml | 1 - 1 file changed, 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index eaf07936e6..9e9917f5ef 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -326,7 +326,6 @@ workflow-wasm = { version = "0.18.0" } # nw-sys = { path = "../nw-sys" } [profile.release] -lto = "thin" strip = true overflow-checks = true