Skip to content

Commit

Permalink
Enable mutable globals in wasm-opt (#486)
Browse files Browse the repository at this point in the history
  • Loading branch information
resulknad authored May 24, 2024
1 parent c575adf commit bf8243a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion crates/cli-tools/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@

## 0.1.0-git

<!-- Increment to skip CHANGELOG.md test: 5 -->
<!-- Increment to skip CHANGELOG.md test: 6 -->
2 changes: 1 addition & 1 deletion crates/cli-tools/src/action.rs
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ pub fn optimize_wasm(applet: impl AsRef<Path>, opt_level: Option<OptLevel>) -> R
strip.arg(applet.as_ref());
cmd::execute(&mut strip)?;
let mut opt = Command::new("wasm-opt");
opt.args(["--enable-bulk-memory", "--enable-sign-ext"]);
opt.args(["--enable-bulk-memory", "--enable-sign-ext", "--enable-mutable-globals"]);
match opt_level {
Some(level) => drop(opt.arg(format!("-O{level}"))),
None => drop(opt.arg("-O")),
Expand Down

0 comments on commit bf8243a

Please sign in to comment.