Skip to content

Commit

Permalink
EMCC_DEBUG
Browse files Browse the repository at this point in the history
  • Loading branch information
bbrk24 committed Oct 26, 2023
1 parent 6619ec5 commit 9310f68
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/build-and-deploy-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,9 @@ jobs:
steps:
- uses: actions/checkout@v4
- uses: numworks/setup-emscripten@bbc4f5e15974bc13e69fdadecfd1858ecb1c4dbb # there is no v1 tag/branch
with:
sdk: 3.1.42
- uses: actions/cache@v3
with:
path: /opt/hostedtoolcache/emscripten/3.1.42/x64/upstream/emscripten/cache/sysroot/lib/wasm32-emscripten/lto
path: /opt/hostedtoolcache/emscripten/latest/x64/upstream/emscripten/cache/sysroot/lib/wasm32-emscripten/lto
key: libs-${{ hashFiles('~/work/Trilangle/Trilangle/emsdk/upstream/emscripten/system/lib/**.c') }}
restore-keys: "libs-\n"
- name: Run build script
Expand Down
4 changes: 2 additions & 2 deletions wasm/build_wasm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ case "$1" in
*)
common_emcc_args=("${common_emcc_args[@]}" -flto -DNDEBUG --closure 1 --closure-args='--emit_use_strict')
{
emcc ../src/*.cpp "${common_emcc_args[@]}" -O3 -o worker.js &
emcc ../src/*.cpp "${common_emcc_args[@]}" -Oz -o ldworker.js
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
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 9310f68

Please sign in to comment.