diff --git a/dist-build/emscripten.sh b/dist-build/emscripten.sh index 9e79bb19..093fe17b 100755 --- a/dist-build/emscripten.sh +++ b/dist-build/emscripten.sh @@ -76,7 +76,7 @@ if [ "$DIST" = yes ]; then "${PREFIX}/lib/libsodium.a" -o "${outFile}" || exit 1 } emmake make $MAKE_FLAGS install || exit 1 - emccLibsodium "${PREFIX}/lib/libsodium.asm.tmp.js" -Oz -s RUNNING_JS_OPTS=1 + emccLibsodium "${PREFIX}/lib/libsodium.asm.tmp.js" -Oz -s WASM=0 -s RUNNING_JS_OPTS=1 emccLibsodium "${PREFIX}/lib/libsodium.wasm.tmp.js" -O3 -s WASM=1 cat > "${PREFIX}/lib/libsodium.js" <<- EOM