diff options
author | Erlend E. Aasland <erlend@python.org> | 2024-04-05 08:29:15 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-05 08:29:15 (GMT) |
commit | 9c1dfe21fdaf2d93c3e1d1bba1cbe240e35ff35d (patch) | |
tree | 2bdf2ffc8b30812fe6a02658bd445a5d7fbcd8d0 | |
parent | 0edde64a41c2c3eeb4fd495efe7fff3d631cae4b (diff) | |
download | cpython-9c1dfe21fdaf2d93c3e1d1bba1cbe240e35ff35d.zip cpython-9c1dfe21fdaf2d93c3e1d1bba1cbe240e35ff35d.tar.gz cpython-9c1dfe21fdaf2d93c3e1d1bba1cbe240e35ff35d.tar.bz2 |
gh-116303: Don't build xxlimited and xxlimited_35 if --disable-test-modules is given (#117554)
-rwxr-xr-x | configure | 4 | ||||
-rw-r--r-- | configure.ac | 4 |
2 files changed, 4 insertions, 4 deletions
@@ -31185,7 +31185,7 @@ printf %s "checking for stdlib extension module xxlimited... " >&6; } if test "$py_cv_module_xxlimited" != "n/a" then : - if true + if test "$TEST_MODULES" = yes then : if test "$ac_cv_func_dlopen" = yes then : @@ -31223,7 +31223,7 @@ printf %s "checking for stdlib extension module xxlimited_35... " >&6; } if test "$py_cv_module_xxlimited_35" != "n/a" then : - if true + if test "$TEST_MODULES" = yes then : if test "$ac_cv_func_dlopen" = yes then : diff --git a/configure.ac b/configure.ac index fc62bfe..e195e15 100644 --- a/configure.ac +++ b/configure.ac @@ -7661,8 +7661,8 @@ PY_STDLIB_MOD([_ctypes_test], dnl Limited API template modules. dnl Emscripten does not support shared libraries yet. -PY_STDLIB_MOD([xxlimited], [], [test "$ac_cv_func_dlopen" = yes]) -PY_STDLIB_MOD([xxlimited_35], [], [test "$ac_cv_func_dlopen" = yes]) +PY_STDLIB_MOD([xxlimited], [test "$TEST_MODULES" = yes], [test "$ac_cv_func_dlopen" = yes]) +PY_STDLIB_MOD([xxlimited_35], [test "$TEST_MODULES" = yes], [test "$ac_cv_func_dlopen" = yes]) # substitute multiline block, must come after last PY_STDLIB_MOD() AC_SUBST([MODULE_BLOCK]) |