From 0f4843b10c74921bc8b2062009fdac5fb96ad6a3 Mon Sep 17 00:00:00 2001 From: Chevdor Date: Tue, 25 Jan 2022 16:19:20 +0100 Subject: [PATCH] Fix release profile (#4778) * Add codeden-units=1 ref #4311 * opt-level to 3 * Fix opt-level * Refactor apt-level into the release profile --- polkadot/Cargo.toml | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/polkadot/Cargo.toml b/polkadot/Cargo.toml index 3f8a98f6d5..5648a82a63 100644 --- a/polkadot/Cargo.toml +++ b/polkadot/Cargo.toml @@ -117,18 +117,20 @@ exclude = ["bridges/relays/bin-substrate", "bridges/bin/rialto/runtime", "bridge [badges] maintenance = { status = "actively-developed" } -# make sure dev builds with backtrace do -# not slow us down -[profile.dev.package.backtrace] -opt-level = 3 - [profile.release] # Polkadot runtime requires unwinding. panic = "unwind" +opt-level = 3 + +# make sure dev builds with backtrace do +# not slow us down +[profile.dev.package.backtrace] +inherits = "release" [profile.production] inherits = "release" lto = true +codegen-units = 1 [profile.testnet] inherits = "release"