Skip to content

Commit

Permalink
Fix opt_level builder flag (bytecodealliance#411)
Browse files Browse the repository at this point in the history
  • Loading branch information
mrowqa authored and sunfishcode committed Oct 10, 2019
1 parent 8e59350 commit 872f6aa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/bin/wasm2obj.rs
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ fn handle_module(
}

if enable_optimize {
flag_builder.set("opt_level", "best").unwrap();
flag_builder.set("opt_level", "speed").unwrap();
}

let isa = isa_builder.finish(settings::Flags::new(flag_builder));
Expand Down
2 changes: 1 addition & 1 deletion src/bin/wast.rs
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ fn main() {

// Enable optimization if requested.
if args.flag_optimize {
flag_builder.set("opt_level", "best").unwrap();
flag_builder.set("opt_level", "speed").unwrap();
}

// Enable SIMD if requested
Expand Down

0 comments on commit 872f6aa

Please sign in to comment.