Skip to content

Commit 3a75b26

Browse files
committed
1 parent e2e2900 commit 3a75b26

File tree

4 files changed

+16
-0
lines changed

4 files changed

+16
-0
lines changed

runtime/crab/build.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@
1919
// crates.io
2020
use substrate_wasm_builder::WasmBuilder;
2121

22+
#[cfg(feature = "std")]
2223
fn main() {
2324
WasmBuilder::new().with_current_project().export_heap_base().import_memory().build()
2425
}
26+
27+
#[cfg(not(feature = "std"))]
28+
fn main() {}

runtime/darwinia/build.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@
1919
// crates.io
2020
use substrate_wasm_builder::WasmBuilder;
2121

22+
#[cfg(feature = "std")]
2223
fn main() {
2324
WasmBuilder::new().with_current_project().export_heap_base().import_memory().build()
2425
}
26+
27+
#[cfg(not(feature = "std"))]
28+
fn main() {}

runtime/pangolin/build.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@
1919
// crates.io
2020
use substrate_wasm_builder::WasmBuilder;
2121

22+
#[cfg(feature = "std")]
2223
fn main() {
2324
WasmBuilder::new().with_current_project().export_heap_base().import_memory().build()
2425
}
26+
27+
#[cfg(not(feature = "std"))]
28+
fn main() {}

runtime/pangoro/build.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@
1919
// crates.io
2020
use substrate_wasm_builder::WasmBuilder;
2121

22+
#[cfg(feature = "std")]
2223
fn main() {
2324
WasmBuilder::new().with_current_project().export_heap_base().import_memory().build()
2425
}
26+
27+
#[cfg(not(feature = "std"))]
28+
fn main() {}

0 commit comments

Comments
 (0)