From 811e20651e7cc743ad654bda75aff82cae6d33b3 Mon Sep 17 00:00:00 2001 From: Bernie Innocenti Date: Sat, 9 Sep 2017 14:10:32 -0400 Subject: [PATCH] Improve asmjs build docs. --- README.md | 7 ++++--- release_asmjs.sh | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) 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 . -- 2.25.1