[3.11] gh-90473: Define HOSTRUNNER for WASI (GH-93606) (GH-93612)

(cherry picked from commit 22df2e0322)

Co-authored-by: Christian Heimes <christian@python.org>
This commit is contained in:
Christian Heimes 2022-06-08 22:21:04 +02:00 committed by GitHub
parent abd022383b
commit 1b7942acb2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 0 deletions

2
configure generated vendored
View file

@ -6688,6 +6688,8 @@ else
fi
;; #(
WASI/*) :
HOSTRUNNER='wasmtime run --env PYTHONPATH=$$(realpath --relative-to $(abs_srcdir) $(abs_builddir))/$$(cat pybuilddir.txt) --mapdir /::$(srcdir) --' ;; #(
*) :
HOSTRUNNER=''
;;

View file

@ -1424,6 +1424,10 @@ then
HOSTRUNNER='node'
])
],
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) --'],
[HOSTRUNNER='']
)
fi