fix wasm build
This commit is contained in:
parent
3e8a2e6136
commit
d5eb99b3e7
2
build.sh
2
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 --converge -Oz --code-folding --const-hoisting --coalesce-locals-learning --vacuum --merge-locals --merge-blocks --fast-math --precompute --rse --low-memory-unused --traps-never-happen --ignore-implicit-traps --once-reduction --optimize-instructions --licm --intrinsic-lowering \
|
||||
time wasm-opt --converge -Oz --code-folding --const-hoisting --coalesce-locals-learning --vacuum --merge-locals --merge-blocks --fast-math --precompute --rse --low-memory-unused --once-reduction --optimize-instructions --licm --intrinsic-lowering \
|
||||
--vacuum --dce --dae-optimizing --inlining-optimizing --merge-similar-functions --strip-debug \
|
||||
-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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user