From: Matt Corallo Date: Sat, 16 May 2020 01:27:51 +0000 (-0400) Subject: LTO in release mode by default, which is really critical for C libs X-Git-Tag: v0.0.12~30^2~5 X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=commitdiff_plain;h=af9d1cf7762ddcf45b94d7e18d3391c16c30396a;p=rust-lightning LTO in release mode by default, which is really critical for C libs --- diff --git a/Cargo.toml b/Cargo.toml index 511682e28..2ff627e28 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -9,3 +9,7 @@ members = [ # Our tests do actual crypo and lots of work, the tradeoff for -O1 is well worth it [profile.dev] opt-level = 1 + +[profile.release] +opt-level = 3 +lto = true