fix random segfaults

This commit is contained in:
ading2210 2024-03-21 11:56:39 -07:00
parent 1bce63801d
commit 1ad301b26c
3 changed files with 31 additions and 12 deletions

View file

@ -51,6 +51,7 @@ if [[ "$*" == *"release"* ]]; then
echo "note: building with release optimizations"
else
COMPILER_OPTIONS="$COMPILER_OPTIONS --profiling -g"
EMSCRIPTEN_OPTIONS="$EMSCRIPTEN_OPTIONS -sSTACK_OVERFLOW_CHECK=2 -sSAFE_HEAP=1"
fi
if [[ "$*" == *"single_file"* ]]; then