Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.

Commit d3e30f8

Browse files
committed
Fix release profile (#4778)
* Add codeden-units=1 ref #4311 * opt-level to 3 * Fix opt-level * Refactor apt-level into the release profile fix #4780
1 parent 0a2541b commit d3e30f8

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

Cargo.toml

+7-5
Original file line numberDiff line numberDiff line change
@@ -117,18 +117,20 @@ exclude = ["bridges/relays/bin-substrate", "bridges/bin/rialto/runtime", "bridge
117117
[badges]
118118
maintenance = { status = "actively-developed" }
119119

120-
# make sure dev builds with backtrace do
121-
# not slow us down
122-
[profile.dev.package.backtrace]
123-
opt-level = 3
124-
125120
[profile.release]
126121
# Polkadot runtime requires unwinding.
127122
panic = "unwind"
123+
opt-level = 3
124+
125+
# make sure dev builds with backtrace do
126+
# not slow us down
127+
[profile.dev.package.backtrace]
128+
inherits = "release"
128129

129130
[profile.production]
130131
inherits = "release"
131132
lto = true
133+
codegen-units = 1
132134

133135
[profile.testnet]
134136
inherits = "release"

0 commit comments

Comments
 (0)