Skip to content

Commit d70fc70

Browse files
committed
build(qc): use -Oz level in wasm-opt
Use `-Oz` optimization level in `wasm-opt` when building the query compiler and not `-Os`. The previous reasoning for using `-Os` that was specified in the comment is no longer true.
1 parent 10e768c commit d70fc70

File tree

1 file changed

+1
-1
lines changed
  • query-compiler/query-compiler-wasm

1 file changed

+1
-1
lines changed

query-compiler/query-compiler-wasm/build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ OUT_FOLDER="${2:-"query-compiler/query-compiler-wasm/pkg"}"
1313
OUT_TARGET="bundler"
1414
# wasm-opt pass
1515
WASM_OPT_ARGS=(
16-
"-Os" # execute size-focused optimization passes (-Oz actually increases size by 1KB)
16+
"-Oz" # execute size-focused optimization passes
1717
"--vacuum" # removes obviously unneeded code
1818
"--duplicate-function-elimination" # removes duplicate functions
1919
"--duplicate-import-elimination" # removes duplicate imports

0 commit comments

Comments
 (0)