GH-115983: skip building shared modules for testing under WASI (GH-116528)

This commit is contained in:
Brett Cannon 2024-03-13 16:25:50 -07:00 committed by GitHub
parent e39795f2cb
commit 8c094c3095
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

@ -28587,9 +28587,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

@ -7398,11 +7398,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],
)
]
)