From: Bernie Innocenti Date: Sat, 9 Sep 2017 18:10:32 +0000 (-0400) Subject: Improve asmjs build docs. X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=811e20651e7cc743ad654bda75aff82cae6d33b3;p=mandelwow.git Improve asmjs build docs. --- diff --git a/README.md b/README.md index 20c75c0..56986a6 100644 --- a/README.md +++ b/README.md @@ -69,9 +69,10 @@ Install emsdk: cd ~ curl -O https://s3.amazonaws.com/mozilla-games/emscripten/releases/emsdk-portable.tar.gz tar xf emsdk-portable.tar.gz -source emsdk-portable/emsdk_env.sh -emsdk install emscripten-1.37.9 --build=MinSizeRel -emsdk activate emscripten-1.37.9 --build=MinSizeRel +cd emsdk-portable +source ./emsdk-portable/emsdk_env.sh +emsdk install latest --build=MinSizeRel +emsdk activate latest --build=MinSizeRel ``` Install rustc: diff --git a/release_asmjs.sh b/release_asmjs.sh index d03a92d..8464101 100755 --- a/release_asmjs.sh +++ b/release_asmjs.sh @@ -1,4 +1,4 @@ set -e -cargo rustc --target asmjs-unknown-emscripten --release -- -C link-args='-s USE_SDL=2' +cargo rustc --target asmjs-unknown-emscripten --release --no-default-features --bin mandelwow -- -C link-args='-s USE_SDL=2' cp -a target/asmjs-unknown-emscripten/release/mandelwow.js . emrun .