Skip to content

Commit fe7b1ae

Browse files
Chore: Optimize wasm release using new flags.
1 parent 3aea9ae commit fe7b1ae

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

.github/workflows/pages.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,11 @@ jobs:
4343

4444
- name: Optimize wasm
4545
run: |
46-
wasm-opt -Oz --converge --strip-debug \
46+
wasm-opt -Oz --converge --strip-debug --strip-producers \
4747
--enable-bulk-memory \
4848
--enable-nontrapping-float-to-int \
4949
--enable-sign-ext \
50+
--low-memory-unused \
5051
-o compiler/target/wasm32-unknown-unknown/release/compiler_lib.wasm \
5152
compiler/target/wasm32-unknown-unknown/release/compiler_lib.wasm
5253

.github/workflows/wasm.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,11 @@ jobs:
4545

4646
- name: Optimize
4747
run: |
48-
wasm-opt -Oz --converge --strip-debug \
48+
wasm-opt -Oz --converge --strip-debug --strip-producers \
4949
--enable-bulk-memory \
5050
--enable-nontrapping-float-to-int \
5151
--enable-sign-ext \
52+
--low-memory-unused \
5253
-o target/wasm32-unknown-unknown/release/compiler_lib.wasm \
5354
target/wasm32-unknown-unknown/release/compiler_lib.wasm
5455
working-directory: compiler

0 commit comments

Comments
 (0)