pocketlang/docs/wasm/README.md

16 lines
420 B
Markdown
Raw Normal View History

2021-05-12 18:57:35 +08:00
2022-04-04 11:17:15 +08:00
To compile pocketlang to wasm:
2021-05-12 18:57:35 +08:00
1. Download and install emscripten using the guide from.
https://emscripten.org/docs/getting_started/downloads.html
2. Add 'emsdk/' directory to the environment, this will need to
call the emsdk_env from anywhere.
3. Run command `call emsdk_env.bat` to initialize the emsdk env
on windows, for other platform see emscripten docs.
4. Run 'python compile.py' to run compile.