From 2b280dd1cddf392d349c1a0f5486acff0a07a342 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=96zg=C3=BCn=20=C3=96zerk?= Date: Thu, 4 Jan 2024 17:20:22 +0300 Subject: [PATCH] revert code to substrate original (#80) --- runtime/build.rs | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/runtime/build.rs b/runtime/build.rs index 5327cc8..b0ab6fa 100644 --- a/runtime/build.rs +++ b/runtime/build.rs @@ -1,5 +1,13 @@ -use substrate_wasm_builder::WasmBuilder; - +#[cfg(feature = "std")] fn main() { - WasmBuilder::new().with_current_project().export_heap_base().import_memory().build() + substrate_wasm_builder::WasmBuilder::new() + .with_current_project() + .export_heap_base() + .import_memory() + .build() } + +/// The wasm builder is deactivated when compiling +/// this crate for wasm to speed up the compilation. +#[cfg(not(feature = "std"))] +fn main() {}