Skip to content

Commit

Permalink
Enable non-MVP features for wasm-opt
Browse files Browse the repository at this point in the history
Fixes #886
  • Loading branch information
Urhengulas committed Jul 30, 2020
1 parent 9f9634c commit aa7b5ef
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/manifest/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,9 @@ impl CargoWasmPackProfile {
pub fn wasm_opt_args(&self) -> Option<Vec<String>> {
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(), "-all".to_string()])
}
CargoWasmPackProfileWasmOpt::ExplicitArgs(s) => Some(s.clone()),
}
}
Expand Down

0 comments on commit aa7b5ef

Please sign in to comment.