Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit 86e5f77

Browse files
Compile skwasm at -Oz. (#42002)
We want to start from a place of small size, and optimize from there with skwasm. Since there is no baseline expectation of performance at `-O3`, let's start with the smallest possible binary.
1 parent 027ca79 commit 86e5f77

File tree

3 files changed

+2
-6
lines changed

3 files changed

+2
-6
lines changed

DEPS

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ allowed_hosts = [
255255
]
256256

257257
deps = {
258-
'src': 'https://github.com/flutter/buildroot.git' + '@' + '05ec9f7124191c7ba354521f3ffd34b09af872e7',
258+
'src': 'https://github.com/flutter/buildroot.git' + '@' + 'b1e6e81b568b633f05cb9ac4afb465013b774a80',
259259

260260
# Fuchsia compatibility
261261
#

lib/web_ui/skwasm/BUILD.gn

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -49,11 +49,6 @@ wasm_lib("skwasm") {
4949
"-sASSERTIONS=1",
5050
"-sGL_ASSERTIONS=1",
5151
]
52-
} else {
53-
ldflags += [
54-
"-Oz",
55-
"--closure=1",
56-
]
5752
}
5853

5954
deps = [

third_party/canvaskit/BUILD.gn

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ wasm_toolchain("skwasm") {
8585

8686
# skwasm is multithreaded
8787
wasm_use_pthreads = true
88+
wasm_prioritize_size = true
8889
}
8990
}
9091

0 commit comments

Comments
 (0)