From 580bf7a19da65634a7370fbbe912859e4dd0ab70 Mon Sep 17 00:00:00 2001 From: Frank Denis Date: Mon, 31 Jul 2017 12:52:52 +0200 Subject: [PATCH] emscripten-wasm.sh: generate HTML files even if we don't use them So that emscripten generates the stub to load the wasm code in web browsers. --- dist-build/emscripten-wasm.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dist-build/emscripten-wasm.sh b/dist-build/emscripten-wasm.sh index 544ac0e9..3ff6ed92 100755 --- a/dist-build/emscripten-wasm.sh +++ b/dist-build/emscripten-wasm.sh @@ -64,7 +64,7 @@ emmake make clean if [ "$DIST" = yes ]; then emmake make $MAKE_FLAGS install && \ emcc "$CFLAGS" --llvm-lto 1 --memory-init-file 0 $CPPFLAGS $LDFLAGS $JS_EXPORTS_FLAGS \ - "${PREFIX}/lib/libsodium.a" -o "${PREFIX}/lib/libsodium.js" || exit 1 + "${PREFIX}/lib/libsodium.a" -o "${PREFIX}/lib/libsodium.html" || exit 1 touch -r "${PREFIX}/lib/libsodium.js" "$DONE_FILE" ls -l "${PREFIX}/lib/libsodium.js" exit 0