summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xconfigure2
-rw-r--r--configure.ac4
2 files changed, 6 insertions, 0 deletions
diff --git a/configure b/configure
index 34c43b9..601089c 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 07a178a..4c540ec 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