Skip to content

Commit

Permalink
Added TODO for disabling assertions in prod build
Browse files Browse the repository at this point in the history
  • Loading branch information
tims-bsquare committed Nov 30, 2023
1 parent 6bcda76 commit baebf66
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ if [ "$1" == "dev" ];
then
extension="-O0 -g3 -s ASSERTIONS=1 -s SAFE_HEAP=1 -s STACK_OVERFLOW_CHECK=2"
else
# TODO: This appears to be a bug in emscripten. Disable assertions when that bug is resolved or a workaround found.
# ASSERTIONS=1 required with optimisations and strict mode. https://github.com/emscripten-core/emscripten/issues/20721
extension="-O3 --closure 1 -s ASSERTIONS=1"
fi
Expand Down

0 comments on commit baebf66

Please sign in to comment.