Improve asmjs build docs.
authorBernie Innocenti <bernie@codewiz.org>
Sat, 9 Sep 2017 18:10:32 +0000 (14:10 -0400)
committerBernie Innocenti <bernie@codewiz.org>
Sat, 9 Sep 2017 18:10:32 +0000 (14:10 -0400)
README.md
release_asmjs.sh

index 20c75c05e70e9ed2d4dff847aea4e9262d92fb33..56986a6720ae3a8689895ed153fd78e4abb26e4b 100644 (file)
--- 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:
index d03a92dad51d22ad25f3945a74ae0d90d71b6de1..84641012b65aa80199d3dabbf5829b9bb0f79322 100755 (executable)
@@ -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 .