]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-109723: Fix build of _testclinic_limited on WASM (#109842)
authorVictor Stinner <vstinner@python.org>
Mon, 25 Sep 2023 14:43:54 +0000 (16:43 +0200)
committerGitHub <noreply@github.com>
Mon, 25 Sep 2023 14:43:54 +0000 (14:43 +0000)
Make sure that the Py_BUILD_CORE macro is not defined.

Modules/_testclinic_limited.c

index 0b606c9857fc408305661cb778356732f04d9a2d..4273383816a0dd582e967739cb35139989cb7c4f 100644 (file)
@@ -1,3 +1,9 @@
+// _testclinic_limited can built with the Py_BUILD_CORE_BUILTIN macro defined
+// if one of the Modules/Setup files asks to build it as "static" (gh-109723).
+#undef Py_BUILD_CORE
+#undef Py_BUILD_CORE_MODULE
+#undef Py_BUILD_CORE_BUILTIN
+
 // For now, only limited C API 3.13 is supported
 #define Py_LIMITED_API 0x030d0000