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:
2
DEPS
2
DEPS
@@ -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
|
||||
#
|
||||
|
||||
@@ -49,11 +49,6 @@ wasm_lib("skwasm") {
|
||||
"-sASSERTIONS=1",
|
||||
"-sGL_ASSERTIONS=1",
|
||||
]
|
||||
} else {
|
||||
ldflags += [
|
||||
"-Oz",
|
||||
"--closure=1",
|
||||
]
|
||||
}
|
||||
|
||||
deps = [
|
||||
|
||||
@@ -85,6 +85,7 @@ wasm_toolchain("skwasm") {
|
||||
|
||||
# skwasm is multithreaded
|
||||
wasm_use_pthreads = true
|
||||
wasm_prioritize_size = true
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user