From 5916540c89e2337a755ba327e8cf56410d4610bd Mon Sep 17 00:00:00 2001 From: Trey Hunner Date: Tue, 22 Jul 2025 12:07:43 -0700 Subject: [PATCH 1/2] Fix script name misspelling in docstring --- Tools/wasm/wasm_build.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Tools/wasm/wasm_build.py b/Tools/wasm/wasm_build.py index bcb80212362b71..92976f18f58aa0 100755 --- a/Tools/wasm/wasm_build.py +++ b/Tools/wasm/wasm_build.py @@ -1,9 +1,9 @@ #!/usr/bin/env python3 """Build script for Python on WebAssembly platforms. - $ ./Tools/wasm/wasm_builder.py emscripten-browser build repl - $ ./Tools/wasm/wasm_builder.py emscripten-node-dl build test - $ ./Tools/wasm/wasm_builder.py wasi build test + $ ./Tools/wasm/wasm_build.py emscripten-browser build repl + $ ./Tools/wasm/wasm_build.py emscripten-node-dl build test + $ ./Tools/wasm/wasm_build.py wasi build test Primary build targets are "emscripten-node-dl" (NodeJS, dynamic linking), "emscripten-browser", and "wasi". @@ -18,7 +18,7 @@ The 'build' Python interpreter must be rebuilt every time Python's byte code changes. - ./Tools/wasm/wasm_builder.py --clean build build + ./Tools/wasm/wasm_build.py --clean build build """ import argparse From 8d2bba773639f479a943cff7cc459986e49d5192 Mon Sep 17 00:00:00 2001 From: Trey Hunner Date: Tue, 22 Jul 2025 12:15:07 -0700 Subject: [PATCH 2/2] Fix config_site settings --- Tools/wasm/wasm_build.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Tools/wasm/wasm_build.py b/Tools/wasm/wasm_build.py index 92976f18f58aa0..e9338583613b54 100755 --- a/Tools/wasm/wasm_build.py +++ b/Tools/wasm/wasm_build.py @@ -291,7 +291,7 @@ def _check_emscripten() -> None: EMSCRIPTEN = Platform( "emscripten", pythonexe="python.js", - config_site=WASMTOOLS / "config.site-wasm32-emscripten", + config_site=WASMTOOLS / "emscripten"/ "config.site-wasm32-emscripten", configure_wrapper=EMSCRIPTEN_ROOT / "emconfigure", ports=EMSCRIPTEN_ROOT / "embuilder", cc=EMSCRIPTEN_ROOT / "emcc", @@ -319,7 +319,7 @@ def _check_wasi() -> None: WASI = Platform( "wasi", pythonexe="python.wasm", - config_site=WASMTOOLS / "config.site-wasm32-wasi", + config_site=WASMTOOLS / "wasi" / "config.site-wasm32-wasi", configure_wrapper=WASMTOOLS / "wasi-env", ports=None, cc=WASI_SDK_PATH / "bin" / "clang",