mirror of https://github.com/python/cpython
gh-126178: NFC Separate Emscripten and WASI standard lib disables in configure (#126179)
Separate the Emscripten and WASI stdlib configuration in configure.
This commit is contained in:
parent
ac3a2c8abc
commit
b3122aa613
|
@ -29254,7 +29254,7 @@ case $ac_sys_system in #(
|
||||||
|
|
||||||
py_cv_module__scproxy=n/a
|
py_cv_module__scproxy=n/a
|
||||||
;; #(
|
;; #(
|
||||||
Emscripten|WASI) :
|
Emscripten) :
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -29276,9 +29276,6 @@ case $ac_sys_system in #(
|
||||||
py_cv_module_syslog=n/a
|
py_cv_module_syslog=n/a
|
||||||
py_cv_module_=n/a
|
py_cv_module_=n/a
|
||||||
|
|
||||||
case $ac_sys_system/$ac_sys_emscripten_target in #(
|
|
||||||
Emscripten/browser*) :
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
py_cv_module_fcntl=n/a
|
py_cv_module_fcntl=n/a
|
||||||
|
@ -29286,10 +29283,28 @@ case $ac_sys_system in #(
|
||||||
py_cv_module_termios=n/a
|
py_cv_module_termios=n/a
|
||||||
py_cv_module_=n/a
|
py_cv_module_=n/a
|
||||||
|
|
||||||
;; #(
|
;; #(
|
||||||
Emscripten/node*) :
|
WASI) :
|
||||||
;; #(
|
|
||||||
WASI/*) :
|
|
||||||
|
|
||||||
|
py_cv_module__curses=n/a
|
||||||
|
py_cv_module__curses_panel=n/a
|
||||||
|
py_cv_module__dbm=n/a
|
||||||
|
py_cv_module__gdbm=n/a
|
||||||
|
py_cv_module__multiprocessing=n/a
|
||||||
|
py_cv_module__posixshmem=n/a
|
||||||
|
py_cv_module__posixsubprocess=n/a
|
||||||
|
py_cv_module__scproxy=n/a
|
||||||
|
py_cv_module__tkinter=n/a
|
||||||
|
py_cv_module__interpreters=n/a
|
||||||
|
py_cv_module__interpchannels=n/a
|
||||||
|
py_cv_module__interpqueues=n/a
|
||||||
|
py_cv_module_grp=n/a
|
||||||
|
py_cv_module_pwd=n/a
|
||||||
|
py_cv_module_resource=n/a
|
||||||
|
py_cv_module_syslog=n/a
|
||||||
|
py_cv_module_=n/a
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -29305,11 +29320,6 @@ case $ac_sys_system in #(
|
||||||
py_cv_module_xxlimited_35=n/a
|
py_cv_module_xxlimited_35=n/a
|
||||||
py_cv_module_=n/a
|
py_cv_module_=n/a
|
||||||
|
|
||||||
|
|
||||||
;; #(
|
|
||||||
*) :
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
;; #(
|
;; #(
|
||||||
*) :
|
*) :
|
||||||
|
|
||||||
|
|
76
configure.ac
76
configure.ac
|
@ -7622,12 +7622,11 @@ AS_CASE([$ac_sys_system],
|
||||||
[CYGWIN*], [PY_STDLIB_MOD_SET_NA([_scproxy])],
|
[CYGWIN*], [PY_STDLIB_MOD_SET_NA([_scproxy])],
|
||||||
[QNX*], [PY_STDLIB_MOD_SET_NA([_scproxy])],
|
[QNX*], [PY_STDLIB_MOD_SET_NA([_scproxy])],
|
||||||
[FreeBSD*], [PY_STDLIB_MOD_SET_NA([_scproxy])],
|
[FreeBSD*], [PY_STDLIB_MOD_SET_NA([_scproxy])],
|
||||||
[Emscripten|WASI], [
|
[Emscripten], [
|
||||||
dnl subprocess and multiprocessing are not supported (no fork syscall).
|
dnl subprocess and multiprocessing are not supported (no fork syscall).
|
||||||
dnl curses and tkinter user interface are not available.
|
dnl curses and tkinter user interface are not available.
|
||||||
dnl dbm and gdbm aren't available, too.
|
dnl dbm and gdbm aren't available, too.
|
||||||
dnl Emscripten and WASI provide only stubs for pwd, grp APIs.
|
dnl pwd, grp APIs, and resource functions (get/setrusage) are stubs.
|
||||||
dnl resource functions (get/setrusage) are stubs, too.
|
|
||||||
PY_STDLIB_MOD_SET_NA(
|
PY_STDLIB_MOD_SET_NA(
|
||||||
[_curses],
|
[_curses],
|
||||||
[_curses_panel],
|
[_curses_panel],
|
||||||
|
@ -7646,33 +7645,50 @@ AS_CASE([$ac_sys_system],
|
||||||
[resource],
|
[resource],
|
||||||
[syslog],
|
[syslog],
|
||||||
)
|
)
|
||||||
AS_CASE([$ac_sys_system/$ac_sys_emscripten_target],
|
dnl fcntl, readline, and termios are not particularly useful in browsers.
|
||||||
[Emscripten/browser*], [
|
PY_STDLIB_MOD_SET_NA(
|
||||||
dnl These modules are not particularly useful in browsers.
|
[fcntl],
|
||||||
PY_STDLIB_MOD_SET_NA(
|
[readline],
|
||||||
[fcntl],
|
[termios],
|
||||||
[readline],
|
)
|
||||||
[termios],
|
],
|
||||||
)
|
[WASI], [
|
||||||
],
|
dnl subprocess and multiprocessing are not supported (no fork syscall).
|
||||||
[Emscripten/node*], [],
|
dnl curses and tkinter user interface are not available.
|
||||||
[WASI/*], [
|
dnl dbm and gdbm aren't available, too.
|
||||||
dnl WASI SDK 15.0 does not support file locking, mmap, and more.
|
dnl pwd, grp APIs, and resource functions (get/setrusage) are stubs.
|
||||||
dnl Test modules that must be compiled as shared libraries are not supported
|
PY_STDLIB_MOD_SET_NA(
|
||||||
dnl (see Modules/Setup.stdlib.in).
|
[_curses],
|
||||||
PY_STDLIB_MOD_SET_NA(
|
[_curses_panel],
|
||||||
[_ctypes_test],
|
[_dbm],
|
||||||
[_testexternalinspection],
|
[_gdbm],
|
||||||
[_testimportmultiple],
|
[_multiprocessing],
|
||||||
[_testmultiphase],
|
[_posixshmem],
|
||||||
[_testsinglephase],
|
[_posixsubprocess],
|
||||||
[fcntl],
|
[_scproxy],
|
||||||
[mmap],
|
[_tkinter],
|
||||||
[termios],
|
[_interpreters],
|
||||||
[xxlimited],
|
[_interpchannels],
|
||||||
[xxlimited_35],
|
[_interpqueues],
|
||||||
)
|
[grp],
|
||||||
]
|
[pwd],
|
||||||
|
[resource],
|
||||||
|
[syslog],
|
||||||
|
)
|
||||||
|
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],
|
||||||
)
|
)
|
||||||
],
|
],
|
||||||
[PY_STDLIB_MOD_SET_NA([_scproxy])]
|
[PY_STDLIB_MOD_SET_NA([_scproxy])]
|
||||||
|
|
Loading…
Reference in New Issue