Skip to content

Commit 4620d01

Browse files
committed
Set --argv0 for wasmtime in HOSTRUNNER for configure.ac
1 parent 06ba5f4 commit 4620d01

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
@@ -1604,7 +1604,7 @@ then
16041604
dnl TODO: support other WASI runtimes
16051605
dnl wasmtime starts the process with "/" as CWD. For OOT builds add the
16061606
dnl directory containing _sysconfigdata to PYTHONPATH.
1607-
[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)::/'],
1607+
[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)::/'],
16081608
[HOSTRUNNER='']
16091609
)
16101610
fi

0 commit comments

Comments
 (0)