difftreelog
build only build wasm when needed
in: master
4 files changed
node/cli/src/command.rsdiffbeforeafterboth--- a/node/cli/src/command.rs
+++ b/node/cli/src/command.rs
@@ -405,6 +405,7 @@
cmd.run(config, partials.client.clone(), db, storage)
}),
+ BenchmarkCmd::Machine(cmd) => runner.sync_run(|config| cmd.run(&config)),
BenchmarkCmd::Overhead(_) => Err("Unsupported benchmarking command".into()),
}
}
runtime/opal/build.rsdiffbeforeafterboth--- a/runtime/opal/build.rs
+++ b/runtime/opal/build.rs
@@ -14,10 +14,9 @@
// You should have received a copy of the GNU General Public License
// along with Unique Network. If not, see <http://www.gnu.org/licenses/>.
-use substrate_wasm_builder::WasmBuilder;
-
fn main() {
- WasmBuilder::new()
+ #[cfg(feature = "std")]
+ substrate_wasm_builder::WasmBuilder::new()
.with_current_project()
.import_memory()
.export_heap_base()
runtime/quartz/build.rsdiffbeforeafterboth--- a/runtime/quartz/build.rs
+++ b/runtime/quartz/build.rs
@@ -1,7 +1,6 @@
-use substrate_wasm_builder::WasmBuilder;
-
fn main() {
- WasmBuilder::new()
+ #[cfg(feature = "std")]
+ substrate_wasm_builder::WasmBuilder::new()
.with_current_project()
.import_memory()
.export_heap_base()
runtime/unique/build.rsdiffbeforeafterboth1use substrate_wasm_builder::WasmBuilder;23fn main() {1fn main() {2 #[cfg(feature = "std")]4 WasmBuilder::new()3 substrate_wasm_builder::WasmBuilder::new()5 .with_current_project()4 .with_current_project()6 .import_memory()5 .import_memory()7 .export_heap_base()6 .export_heap_base()