From 8952552eef5bbb78fa025661f0850fb46f1d0e51 Mon Sep 17 00:00:00 2001 From: Simon Gardling Date: Thu, 28 Apr 2022 11:34:04 -0400 Subject: [PATCH] fix wasm-opt --- build.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.sh b/build.sh index 98a0980..5560489 100755 --- a/build.sh +++ b/build.sh @@ -24,7 +24,7 @@ wasm-bindgen target/wasm32-unknown-unknown/${TYPE}/ytbn_graphing_software.wasm - if test "$TYPE" == "release"; then echo "running wasm-opt..." - time wasm-opt -Oz --dae --dce --code-folding --const-hoisting --coalesce-locals-learning --vacuum --merge-locals --merge-blocks --no-exit-runtime --fast-math --traps-never-happen -o pkg/ytbn_graphing_software_bg_2.wasm pkg/ytbn_graphing_software_bg.wasm + time wasm-opt --converge -Oz --dae --dce --code-folding --const-hoisting --coalesce-locals-learning --vacuum --merge-locals --merge-blocks --no-exit-runtime --fast-math --traps-never-happen --precompute -o pkg/ytbn_graphing_software_bg_2.wasm pkg/ytbn_graphing_software_bg.wasm mv pkg/ytbn_graphing_software_bg_2.wasm pkg/ytbn_graphing_software_bg.wasm fi