Skip to content

Commit

Permalink
change build.rs on people kusama
Browse files Browse the repository at this point in the history
  • Loading branch information
SBalaguer committed Jul 2, 2024
1 parent 177cb25 commit 57ab072
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions system-parachains/people/people-kusama/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,17 @@
// See the License for the specific language governing permissions and
// limitations under the License.

#[cfg(feature = "std")]
#[cfg(all(feature = "std", not(feature = "metadata-hash")))]
fn main() {
substrate_wasm_builder::WasmBuilder::new()
.with_current_project()
.export_heap_base()
.import_memory()
substrate_wasm_builder::WasmBuilder::build_using_defaults()
}

#[cfg(all(feature = "std", feature = "metadata-hash"))]
fn main() {
substrate_wasm_builder::WasmBuilder::init_with_defaults()
.enable_metadata_hash("KSM", 12)
.build()
}

#[cfg(not(feature = "std"))]
fn main() {}
fn main() {}

0 comments on commit 57ab072

Please sign in to comment.