Skip to content

Commit

Permalink
fix build with runtime benchmarks
Browse files Browse the repository at this point in the history
  • Loading branch information
clangenb committed May 16, 2023
1 parent 6296c0b commit 011e2bc
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions polkadot-parachains/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ runtime-benchmarks = [
"try-runtime-cli/try-runtime",
"polkadot-service/runtime-benchmarks",
"parachain-runtime/runtime-benchmarks",
# "shell-runtime/runtime-benchmarks",
"polkadot-cli/runtime-benchmarks",
]
fast-runtime = [
Expand Down
9 changes: 9 additions & 0 deletions polkadot-parachains/shell-runtime/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -124,3 +124,12 @@ std = [
"cumulus-pallet-aura-ext/std",
"sp-consensus-aura/std",
]
# Weird cargo behaviour: We have to feature gate the `runtime-benchmarks` behind
# a feature here. Otherwise the feature is automatically activated in dependencies
# when we compile the whole workspace with the `runtime-benchmarks` feature, which
# leads to compiler erros in the `shell-runtime` because the benchmarks are not
# implemented.
runtime-benchmarks = [
"pallet-xcm/runtime-benchmarks",
"xcm-builder/runtime-benchmarks",
]

0 comments on commit 011e2bc

Please sign in to comment.