KEMBAR78
GH-103065, GH-106704, GH-105253: Provide a `Tools/wasm/wasi.py` script to simplify doing a WASI build by brettcannon · Pull Request #112473 · python/cpython · GitHub
Skip to content

Conversation

@brettcannon
Copy link
Member

@brettcannon brettcannon commented Nov 27, 2023

Tools/wasm/README.md has instructions, but to do a pydebug build which caches the results from configure, you can do:

python Tools/wasm/wasi.py build -- -C --with-pydebug

or in discrete steps:

python Tools/wasm/wasi.py configure-build-python -- -C --with-pydebug
python Tools/wasm/wasi.py make-build-python
python Tools/wasm/wasi.py configure-host -- -C
python Tools/wasm/wasi.py make-host

Set to the initial commit of Python.
Want to minimize confusion for core devs.
Implicity verifies `python.wasm` also works.
If it isn't then it's usually a sign that one went to/from a pydebug build from/to a release one
@brettcannon brettcannon added build The build process and cross-build OS-wasi labels Nov 27, 2023
@brettcannon brettcannon self-assigned this Nov 27, 2023
@brettcannon brettcannon changed the title GH-103065, GH-106704: Provide a Tools/wasm/wasi.py script to simplify doing a WASI build GH-103065, GH-106704, GH-105253: Provide a Tools/wasm/wasi.py script to simplify doing a WASI build Nov 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

build The build process and cross-build OS-wasi

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant