Build core wasm library with C++ exceptions disabled

This commit is contained in:
Max Brunsfeld 2022-09-02 14:55:50 -07:00
parent 17fb261633
commit 15190a497d
3 changed files with 4 additions and 4 deletions

View file

@ -5,7 +5,6 @@
"_realloc",
"__ZNKSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE4copyEPcmm",
"__ZNKSt3__220__vector_base_commonILb1EE20__throw_length_errorEv",
"__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcm",
"__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE7reserveEm",
"__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE9__grow_byEmmmmmm",

View file

@ -89,6 +89,7 @@ $emcc \
-s NODEJS_CATCH_REJECTION=0 \
-s EXPORTED_FUNCTIONS=@${web_dir}/exports.json \
$emscripten_flags \
-fno-exceptions \
-std=c99 \
-D 'fprintf(...)=' \
-D NDEBUG= \

View file

@ -20,15 +20,15 @@ EMSDK_DIR="./target/emsdk"
git pull
./emsdk list
echo 'Installing latest emscripten...'
echo 'Installing emscripten...'
./emsdk install $EMSCRIPTEN_VERSION
echo 'Activating latest emscripten...'
echo 'Activating emscripten...'
./emsdk activate $EMSCRIPTEN_VERSION
) >&2
(
source "$EMSDK_DIR/emsdk_env.sh" > /dev/null
emcc --version >&2
declare -px
echo export $(env | egrep '^(PATH|EM.*)')
)