From 787d17348378f551cec67e880764893955da8d13 Mon Sep 17 00:00:00 2001 From: Ryan Lester Date: Wed, 20 Jun 2018 14:25:08 -0400 Subject: [PATCH] fix for emscripten breaking change (https://github.com/kripken/emscripten/pull/6419) --- dist-build/emscripten.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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