Skip to content

Commit

Permalink
Optimize Wasm for speed instead of size (#699)
Browse files Browse the repository at this point in the history
This matches Skia's compile flags for building CanvasKit releases.

See flutter/flutter#123484
  • Loading branch information
jason-simmons authored Mar 29, 2023
1 parent 85c3e46 commit 37659b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build/config/compiler/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -874,7 +874,7 @@ config("optimize") {
} else if (is_android || is_fuchsia) {
cflags = [ "-Oz" ] + common_optimize_on_cflags # Favor size over speed.
} else if (is_wasm) {
cflags = [ "-Oz" ]
cflags = [ "-O3" ]
} else {
cflags = [ "-O2" ] + common_optimize_on_cflags
}
Expand Down

0 comments on commit 37659b2

Please sign in to comment.