From: Christian Heimes Date: Wed, 8 Jun 2022 18:18:46 +0000 (+0200) Subject: gh-90473: Define HOSTRUNNER for WASI (GH-93606) X-Git-Tag: v3.12.0a1~1320 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=22df2e0322300d25c1255ceb73cacc0ebd96b20e;p=thirdparty%2FPython%2Fcpython.git gh-90473: Define HOSTRUNNER for WASI (GH-93606) --- diff --git a/configure b/configure index 34c43b9dde31..601089cd44c2 100755 --- a/configure +++ b/configure @@ -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='' ;; diff --git a/configure.ac b/configure.ac index 07a178a996c1..4c540ec52b4d 100644 --- a/configure.ac +++ b/configure.ac @@ -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