Skip to content

Commit aa7b5ef

Browse files
committed
Enable non-MVP features for wasm-opt
Fixes drager#886
1 parent 9f9634c commit aa7b5ef

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/manifest/mod.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -379,7 +379,9 @@ impl CargoWasmPackProfile {
379379
pub fn wasm_opt_args(&self) -> Option<Vec<String>> {
380380
match self.wasm_opt.as_ref()? {
381381
CargoWasmPackProfileWasmOpt::Enabled(false) => None,
382-
CargoWasmPackProfileWasmOpt::Enabled(true) => Some(vec!["-O".to_string()]),
382+
CargoWasmPackProfileWasmOpt::Enabled(true) => {
383+
Some(vec!["-O".to_string(), "-all".to_string()])
384+
}
383385
CargoWasmPackProfileWasmOpt::ExplicitArgs(s) => Some(s.clone()),
384386
}
385387
}

0 commit comments

Comments
 (0)