Skip to content

Commit

Permalink
What's going on?
Browse files Browse the repository at this point in the history
  • Loading branch information
bbrk24 committed Oct 27, 2023
1 parent 9310f68 commit f1e5b5e
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions wasm/build_wasm.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash

set -e
set -ex

common_emcc_args=(-WCL4 -Wnon-gcc -Wimplicit-fallthrough
-fno-rtti -fno-exceptions
Expand Down Expand Up @@ -34,10 +34,12 @@ case "$1" in
"$(npx sass --version | cut -d' ' -f1)"
;;
*)
common_emcc_args=("${common_emcc_args[@]}" -flto -DNDEBUG --closure 1 --closure-args='--emit_use_strict')
common_emcc_args=("${common_emcc_args[@]}"
-flto -DNDEBUG --closure 1 --closure-args='--emit_use_strict'
'-Wl,--trace-symbol=emscripten_memcpy_big')
{
EMCC_DEBUG=1 emcc ../src/*.cpp "${common_emcc_args[@]}" -O3 -o worker.js &
EMCC_DEBUG=1 emcc ../src/*.cpp "${common_emcc_args[@]}" -Oz -o ldworker.js
emcc ../src/*.cpp "${common_emcc_args[@]}" -O3 -o worker.js &
emcc ../src/*.cpp "${common_emcc_args[@]}" -Oz -o ldworker.js
wait
} &
npx coffee -p in.coffee | npx terser -c keep_fargs=false,unsafe=true,unsafe_arrows=true -mo index.js --ecma 6 \
Expand Down

0 comments on commit f1e5b5e

Please sign in to comment.