From cc377793b631ca90c63b73c9ef10b8a26d4425d3 Mon Sep 17 00:00:00 2001 From: Urhengulas Date: Sat, 1 Aug 2020 12:58:01 +0200 Subject: [PATCH] Enable non-MVP features for wasm-opt Fixes #886 --- src/manifest/mod.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/manifest/mod.rs b/src/manifest/mod.rs index e82451cb..56cf3031 100644 --- a/src/manifest/mod.rs +++ b/src/manifest/mod.rs @@ -379,7 +379,10 @@ impl CargoWasmPackProfile { pub fn wasm_opt_args(&self) -> Option> { match self.wasm_opt.as_ref()? { CargoWasmPackProfileWasmOpt::Enabled(false) => None, - CargoWasmPackProfileWasmOpt::Enabled(true) => Some(vec!["-O".to_string()]), + CargoWasmPackProfileWasmOpt::Enabled(true) => Some(vec![ + "-O".to_string(), + "--enable-mutable-globals".to_string(), + ]), CargoWasmPackProfileWasmOpt::ExplicitArgs(s) => Some(s.clone()), } }