Skip to content

Commit

Permalink
Fix release profile (paritytech#4778)
Browse files Browse the repository at this point in the history
* Add codeden-units=1

ref paritytech#4311

* opt-level to 3

* Fix opt-level

* Refactor apt-level into the release profile
  • Loading branch information
chevdor authored and Wizdave97 committed Feb 3, 2022
1 parent 3ff36ff commit 3e89849
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 3e89849

Please sign in to comment.