Skip to content

Commit

Permalink
Enable non-MVP features for wasm-opt
Browse files Browse the repository at this point in the history
  • Loading branch information
Urhengulas committed Aug 1, 2020
1 parent 9f9634c commit cc37779
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/manifest/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,10 @@ 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(),
"--enable-mutable-globals".to_string(),
]),
CargoWasmPackProfileWasmOpt::ExplicitArgs(s) => Some(s.clone()),
}
}
Expand Down

0 comments on commit cc37779

Please sign in to comment.