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()), } }