Skip to content

Commit 22df2e0

Browse files
authored
gh-90473: Define HOSTRUNNER for WASI (GH-93606)
1 parent 5442561 commit 22df2e0

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

configure

+2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

configure.ac

+4
Original file line numberDiff line numberDiff line change
@@ -1424,6 +1424,10 @@ then
14241424
HOSTRUNNER='node'
14251425
])
14261426
],
1427+
dnl TODO: support other WASI runtimes
1428+
dnl wasmtime starts the proces with "/" as CWD. For OOT builds add the
1429+
dnl directory containing _sysconfigdata to PYTHONPATH.
1430+
[WASI/*], [HOSTRUNNER='wasmtime run --env PYTHONPATH=$$(realpath --relative-to $(abs_srcdir) $(abs_builddir))/$$(cat pybuilddir.txt) --mapdir /::$(srcdir) --'],
14271431
[HOSTRUNNER='']
14281432
)
14291433
fi

0 commit comments

Comments
 (0)