From 1bb35612c1da02b60c4e1ff2a409da8c8088be9c Mon Sep 17 00:00:00 2001 From: David Reid Date: Fri, 28 Dec 2018 22:04:01 +1000 Subject: [PATCH] Update Emscripten readme and build batch file. --- tests/README.md | 5 ++++- tests/mal_build_tests_emscripten.bat | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/tests/README.md b/tests/README.md index 9bf2f819..edb0f530 100644 --- a/tests/README.md +++ b/tests/README.md @@ -16,4 +16,7 @@ work for me for some reason. Then, run the relevant batch file: mal_build_tests_emscripten.bat -The output will be placed in the bin folder. \ No newline at end of file +The output will be placed in the bin folder. If you have output WASM it may not work when +running the web page locally. To test you can run with something like this: + + emrun bin/mal_test_0_emscripten.html \ No newline at end of file diff --git a/tests/mal_build_tests_emscripten.bat b/tests/mal_build_tests_emscripten.bat index 83a3b69a..981aa286 100644 --- a/tests/mal_build_tests_emscripten.bat +++ b/tests/mal_build_tests_emscripten.bat @@ -1 +1 @@ -emcc ./mal_test_0.c -o ./bin/mal_test_0_emscripten.html \ No newline at end of file +emcc ./mal_test_0.c -o ./bin/mal_test_0_emscripten.html -O3 \ No newline at end of file