diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2022-06-11 07:04:35 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-11 07:04:35 (GMT) |
commit | 4c881049ef1ff0e3632da13bd9353fb53b7e57b0 (patch) | |
tree | 8b35349b7b91d120c8d9ea3925fba59aec018581 /configure.ac | |
parent | 54fe3d57bf5078f2d019df20c2db8028eb1a9e0f (diff) | |
download | cpython-4c881049ef1ff0e3632da13bd9353fb53b7e57b0.zip cpython-4c881049ef1ff0e3632da13bd9353fb53b7e57b0.tar.gz cpython-4c881049ef1ff0e3632da13bd9353fb53b7e57b0.tar.bz2 |
gh-84461: Use HOSTRUNNER to run regression tests (GH-93694)
Co-authored-by: Brett Cannon <brett@python.org>
(cherry picked from commit dc5e02b2f44dada145a3743ef77b07dbcf3e4a4a)
Co-authored-by: Christian Heimes <christian@python.org>
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index 93c198f..d663913 100644 --- a/configure.ac +++ b/configure.ac @@ -1492,13 +1492,18 @@ then dnl TODO: support other WASI runtimes dnl wasmtime starts the proces with "/" as CWD. For OOT builds add the dnl directory containing _sysconfigdata to PYTHONPATH. - [WASI/*], [HOSTRUNNER='wasmtime run --env PYTHONPATH=$$(realpath --relative-to $(abs_srcdir) $(abs_builddir))/$$(cat pybuilddir.txt) --mapdir /::$(srcdir) --'], + [WASI/*], [HOSTRUNNER='wasmtime run --env PYTHONPATH=/$(shell realpath --relative-to $(abs_srcdir) $(abs_builddir))/$(shell cat pybuilddir.txt) --mapdir /::$(srcdir) --'], [HOSTRUNNER=''] ) fi AC_SUBST([HOSTRUNNER]) AC_MSG_RESULT([$HOSTRUNNER]) +if test -n "$HOSTRUNNER"; then + dnl Pass hostrunner variable as env var in order to expand shell expressions. + PYTHON_FOR_BUILD="_PYTHON_HOSTRUNNER='$HOSTRUNNER' $PYTHON_FOR_BUILD" +fi + AC_MSG_RESULT($LDLIBRARY) # LIBRARY_DEPS, LINK_PYTHON_OBJS and LINK_PYTHON_DEPS variable |