]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-40280: Allow to compile _testcapi as builtin module (GH-30559)
authorChristian Heimes <christian@python.org>
Wed, 12 Jan 2022 19:27:37 +0000 (21:27 +0200)
committerGitHub <noreply@github.com>
Wed, 12 Jan 2022 19:27:37 +0000 (20:27 +0100)
Modules/Setup.stdlib.in
Modules/_testcapimodule.c
configure
configure.ac

index 5788b446201e5afe605d8d2475b455e24cf27263..73f041eb2fba9f1f48f2de64ba7141375325afe6 100644 (file)
 @MODULE__XXTESTFUZZ_TRUE@_xxtestfuzz _xxtestfuzz/_xxtestfuzz.c _xxtestfuzz/fuzzer.c
 @MODULE__TESTBUFFER_TRUE@_testbuffer _testbuffer.c
 @MODULE__TESTINTERNALCAPI_TRUE@_testinternalcapi _testinternalcapi.c
-
+@MODULE__TESTCAPI_TRUE@_testcapi _testcapimodule.c
 
 # Some testing modules MUST be built as shared libraries.
 *shared*
-@MODULE__TESTCAPI_TRUE@_testcapi _testcapimodule.c
 @MODULE__TESTIMPORTMULTIPLE_TRUE@_testimportmultiple _testimportmultiple.c
 @MODULE__TESTMULTIPHASE_TRUE@_testmultiphase _testmultiphase.c
 @MODULE__CTYPES_TEST_TRUE@_ctypes_test _ctypes/_ctypes_test.c
index ea9c048554d22f8bbd6375274ce83119878c92e7..7369f094faeddec41beca2f1fad5ffcbe944a420 100644 (file)
@@ -12,6 +12,8 @@
    macro defined, but only the public C API must be tested here. */
 
 #undef Py_BUILD_CORE_MODULE
+#undef Py_BUILD_CORE_BUILTIN
+
 /* Always enable assertions */
 #undef NDEBUG
 
index 327e9bd2d3f344d74c9373bd2d55f2b81bb1c35b..6c9aacc68a95614aa593a216e9480f74696e457f 100755 (executable)
--- a/configure
+++ b/configure
@@ -21258,8 +21258,8 @@ fi
 if test "$enable_test_modules" = no; then
     TEST_MODULES=no
 else
-    case $ac_sys_system in #(
-  Emscripten) :
+    case $ac_sys_system/$ac_sys_emscripten_target in #(
+  Emscripten/browser) :
     TEST_MODULES=no ;; #(
   *) :
     TEST_MODULES=yes
index 25181c0f7ed173c85a5e9fe7b9012f01c2d5ee53..4396828bf6fe6df1e69067149661d6a7f403b4cf 100644 (file)
@@ -6309,8 +6309,8 @@ AC_ARG_ENABLE(test-modules,
 if test "$enable_test_modules" = no; then
     TEST_MODULES=no
 else
-    AS_CASE([$ac_sys_system],
-      [Emscripten], [TEST_MODULES=no],
+    AS_CASE([$ac_sys_system/$ac_sys_emscripten_target],
+      [Emscripten/browser], [TEST_MODULES=no],
       [TEST_MODULES=yes]
     )
 fi