Compile skwasm at -Oz. (flutter/engine#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.
This commit is contained in:
Jackson Gardner
2023-05-15 12:59:14 -07:00
committed by GitHub
parent 3f21c6d213
commit 4daa0909c2
3 changed files with 2 additions and 6 deletions

2
DEPS
View File

@@ -255,7 +255,7 @@ allowed_hosts = [
]
deps = {
'src': 'https://github.com/flutter/buildroot.git' + '@' + '05ec9f7124191c7ba354521f3ffd34b09af872e7',
'src': 'https://github.com/flutter/buildroot.git' + '@' + 'b1e6e81b568b633f05cb9ac4afb465013b774a80',
# Fuchsia compatibility
#

View File

@@ -49,11 +49,6 @@ wasm_lib("skwasm") {
"-sASSERTIONS=1",
"-sGL_ASSERTIONS=1",
]
} else {
ldflags += [
"-Oz",
"--closure=1",
]
}
deps = [

View File

@@ -85,6 +85,7 @@ wasm_toolchain("skwasm") {
# skwasm is multithreaded
wasm_use_pthreads = true
wasm_prioritize_size = true
}
}