Skip to content

Commit

Permalink
Change the default wasm-opt settings to optimize for size (#319)
Browse files Browse the repository at this point in the history
  • Loading branch information
Innominus authored Oct 21, 2024
1 parent e37abb4 commit 14e0acc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/compile/front.rs
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ async fn optimize(
) -> Result<CommandResult<()>> {
let wasm_opt = Exe::WasmOpt.get().await.dot()?;

let args = [file.as_str(), "-Os", "-o", file.as_str()];
let args = [file.as_str(), "-Oz", "-o", file.as_str()];
let process = Command::new(wasm_opt)
.args(args)
.spawn()
Expand Down

0 comments on commit 14e0acc

Please sign in to comment.