From ced5ce646658e8300fd816a1c7e50cca7be52de1 Mon Sep 17 00:00:00 2001 From: 0xA001113 <0xeuler@proton.me> Date: Thu, 1 Aug 2024 21:37:07 +0200 Subject: [PATCH] Release builds will use lto = false instead of thin: 1. It 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: https://github.com/kaspanet/rusty-kaspa/issues/417 2. It 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 6721410..920aca9 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -318,7 +318,6 @@ workflow-wasm = { version = "0.12.1" } # nw-sys = { path = "../nw-sys" } [profile.release] -lto = "thin" strip = true overflow-checks = true