Skip to content

Commit 783be8c

Browse files
[3.11] GH-155757: Set --argv0 for wasmtime in configure.ac (GH-155815) (#155816)
[3.12] GH-155757: Set `--argv0` for wasmtime in configure.ac (GH-155815) Set `--argv0` for wasmtime in HOSTRUNNER for configure.ac (cherry picked from commit 58c86ab) Co-authored-by: Brett Cannon <brett@python.org>
1 parent 3db5f9d commit 783be8c

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

configure

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

configure.ac

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1580,7 +1580,7 @@ then
15801580
dnl TODO: support other WASI runtimes
15811581
dnl wasmtime starts the proces with "/" as CWD. For OOT builds add the
15821582
dnl directory containing _sysconfigdata to PYTHONPATH.
1583-
[WASI/*], [HOSTRUNNER='wasmtime run --wasm max-wasm-stack=8388608 --wasi preview2 --env PYTHONPATH=/$(shell realpath --relative-to $(abs_srcdir) $(abs_builddir))/$(shell cat pybuilddir.txt):/Lib --dir $(srcdir)::/'],
1583+
[WASI/*], [HOSTRUNNER='wasmtime run --argv0 /$(shell realpath --relative-to $(abs_srcdir) $(abs_builddir))/python.wasm --wasm max-wasm-stack=8388608 --wasi preview2 --env PYTHONPATH=/$(shell realpath --relative-to $(abs_srcdir) $(abs_builddir))/$(shell cat pybuilddir.txt):/Lib --dir $(srcdir)::/'],
15841584
[HOSTRUNNER='']
15851585
)
15861586
fi

0 commit comments

Comments
 (0)