diff --git a/src/cmd/build.rs b/src/cmd/build.rs index 5ae2d3b65..7be4d1d78 100644 --- a/src/cmd/build.rs +++ b/src/cmd/build.rs @@ -627,7 +627,8 @@ fn do_optimization( // the memory in our module is imported, `wasm-opt` needs to be told that // the memory is initialized to zeroes, otherwise it won't run the // memory-packing pre-pass. - .arg("--zero-filled-memory"); + .arg("--zero-filled-memory") + .arg("--mvp-features"); if keep_debug_symbols { command.arg("-g"); }