From fd37406086d18788e15c8f067257be8c2b65d2a3 Mon Sep 17 00:00:00 2001 From: David Reid Date: Tue, 15 Jul 2025 06:53:52 +1000 Subject: [PATCH] Update build instructions for Emscripten. --- tests/_build/README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/_build/README.md b/tests/_build/README.md index 92985409..d0e3876d 100644 --- a/tests/_build/README.md +++ b/tests/_build/README.md @@ -15,11 +15,11 @@ On Linux, do `source ~/emsdk/emsdk_env.sh` before compiling. On Windows, you need to move into the build and run emsdk_env.bat from a command prompt using an absolute path like "C:\emsdk\emsdk_env.bat". Note that PowerShell doesn't work for me for some reason. Example: - emcc ../test_emscripten/ma_test_emscripten.c -o bin/test_emscripten.html -sAUDIO_WORKLET=1 -sWASM_WORKERS=1 -sASYNCIFY -DMA_ENABLE_AUDIO_WORKLETS -Wall -Wextra + emcc ../emscripten/emscripten.c -o bin/emscripten.html -sAUDIO_WORKLET=1 -sWASM_WORKERS=1 -sASYNCIFY -DMA_ENABLE_AUDIO_WORKLETS -Wall -Wextra If you output WASM it may not work when running the web page locally. To test you can run with something like this: - emrun ./bin/test_emscripten.html + emrun ./bin/emscripten.html If you want to see stdout on the command line when running from emrun, add `--emrun` to your emcc command. \ No newline at end of file