Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gh-95853: Improve WASM build script (GH-96389) #96389

Merged
merged 3 commits into from
Aug 30, 2022

Conversation

tiran
Copy link
Member

@tiran tiran commented Aug 29, 2022

  • pre-build Emscripten ports and system libraries
  • check for broken EMSDK versions
  • use EMSDK's node for wasm32-emscripten
  • warn when PKG_CONFIG_PATH is set
  • add support level information

- pre-build Emscripten ports and system libraries
- check for broken EMSDK versions
- use EMSDK's node for wasm32-emscripten
- warn when PKG_CONFIG_PATH is set
- add support level information
Copy link

@rchiodo rchiodo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for this

Tools/wasm/wasm_build.py Outdated Show resolved Hide resolved
Tools/wasm/wasm_build.py Show resolved Hide resolved
Tools/wasm/wasm_build.py Outdated Show resolved Hide resolved
Tools/wasm/wasm_build.py Outdated Show resolved Hide resolved
Tools/wasm/wasm_build.py Outdated Show resolved Hide resolved
Tools/wasm/wasm_build.py Outdated Show resolved Hide resolved
Tools/wasm/wasm_build.py Outdated Show resolved Hide resolved
Tools/wasm/wasm_build.py Outdated Show resolved Hide resolved
Tools/wasm/wasm_build.py Outdated Show resolved Hide resolved
Tools/wasm/wasm_build.py Show resolved Hide resolved
tiran and others added 2 commits August 30, 2022 07:08
Co-authored-by: Brett Cannon <brett@python.org>
@tiran tiran changed the title gh-95853: Improve WASM build script gh-95853: Improve WASM build script (GH-96389) Aug 30, 2022
@tiran tiran merged commit 2eb9008 into python:main Aug 30, 2022
@tiran tiran deleted the wasm_build-ports branch August 30, 2022 05:56
tiran added a commit to tiran/cpython that referenced this pull request Sep 11, 2022
- pre-build Emscripten ports and system libraries
- check for broken EMSDK versions
- use EMSDK's node for wasm32-emscripten
- warn when PKG_CONFIG_PATH is set
- add support level information
tiran added a commit that referenced this pull request Sep 13, 2022
GH-96045, GH-96389, GH-96744) (GH-96749)

Automate WASM build with a new Python script. The script provides
several build profiles with configure flags for Emscripten flavors
and WASI. The script can detect and use Emscripten SDK and WASI SDK from
default locations or env vars.

``configure`` now detects Node arguments and creates HOSTRUNNER
arguments for Node 16. It also sets correct arguments for
``wasm64-emscripten``.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants