mirror of
https://github.com/python/cpython.git
synced 2025-08-02 16:13:13 +00:00
gh-90473: Define HOSTRUNNER for WASI (GH-93606)
This commit is contained in:
parent
5442561c1a
commit
22df2e0322
2 changed files with 6 additions and 0 deletions
2
configure
generated
vendored
2
configure
generated
vendored
|
@ -6688,6 +6688,8 @@ else
|
||||||
|
|
||||||
fi
|
fi
|
||||||
;; #(
|
;; #(
|
||||||
|
WASI/*) :
|
||||||
|
HOSTRUNNER='wasmtime run --env PYTHONPATH=$$(realpath --relative-to $(abs_srcdir) $(abs_builddir))/$$(cat pybuilddir.txt) --mapdir /::$(srcdir) --' ;; #(
|
||||||
*) :
|
*) :
|
||||||
HOSTRUNNER=''
|
HOSTRUNNER=''
|
||||||
;;
|
;;
|
||||||
|
|
|
@ -1424,6 +1424,10 @@ then
|
||||||
HOSTRUNNER='node'
|
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='']
|
[HOSTRUNNER='']
|
||||||
)
|
)
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue