[3.12] GH-115983: skip building shared modules for testing under WASI (GH-116528) (#120316)

GH-115983: skip building shared modules for testing under WASI (GH-116528)
(cherry picked from commit 8c094c3095)

Co-authored-by: Brett Cannon <brett@python.org>
This commit is contained in:
Miss Islington (bot) 2024-06-10 15:27:04 +02:00 committed by GitHub
parent 7545b7cb63
commit a9f2daf1ab
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 15 additions and 0 deletions

View file

@ -0,0 +1 @@
Skip building test modules that must be built as shared under WASI.

6
configure generated vendored
View file

@ -28646,9 +28646,15 @@ case $ac_sys_system in #(
py_cv_module__ctypes_test=n/a
py_cv_module__testexternalinspection=n/a
py_cv_module__testimportmultiple=n/a
py_cv_module__testmultiphase=n/a
py_cv_module__testsinglephase=n/a
py_cv_module_fcntl=n/a
py_cv_module_mmap=n/a
py_cv_module_termios=n/a
py_cv_module_xxlimited=n/a
py_cv_module_xxlimited_35=n/a
py_cv_module_=n/a

View file

@ -7300,11 +7300,19 @@ AS_CASE([$ac_sys_system],
[Emscripten/node*], [],
[WASI/*], [
dnl WASI SDK 15.0 does not support file locking, mmap, and more.
dnl Test modules that must be compiled as shared libraries are not supported
dnl (see Modules/Setup.stdlib.in).
PY_STDLIB_MOD_SET_NA(
[_ctypes_test],
[_testexternalinspection],
[_testimportmultiple],
[_testmultiphase],
[_testsinglephase],
[fcntl],
[mmap],
[termios],
[xxlimited],
[xxlimited_35],
)
]
)