There was an error while loading. Please reload this page.
--argv0
1 parent dc9697f commit 06ba5f4Copy full SHA for 06ba5f4
2 files changed
Misc/NEWS.d/next/Build/2026-08-13-12-57-27.gh-issue-155757._5cg0h.rst
@@ -0,0 +1,3 @@
1
+Set the ``--argv0`` argument to wasmtime for WASI builds so the test suite
2
+passes. Otherwise the calculated paths to the stdlib for frozen modules is
3
+incorrect.
Tools/wasm/wasm_build.py
@@ -318,6 +318,7 @@ def _check_wasi():
318
"wasmtime run "
319
"--wasm max-wasm-stack=8388608 "
320
"--wasi preview2 "
321
+ "--argv0 /{relbuilddir}/python.wasm "
322
"--dir {srcdir}::/ "
323
"--env PYTHONPATH=/{relbuilddir}/build/lib.wasi-wasm32-{version}:/Lib"
324
),
0 commit comments