forked from firka/flutter
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:
@@ -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