diff options
| author | Christian Heimes <christian@python.org> | 2022-01-12 21:27:37 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-01-12 20:27:37 +0100 |
| commit | e34c9367f8e0068ca4bcad9fb5c2c1024d02a77d (patch) | |
| tree | 652196b8d16c2478fda8c0b232179ebb62a4b6f6 /Modules | |
| parent | fc05e6bfce5d5dfc23859e6f7862c1e707a12e42 (diff) | |
| download | cpython-git-e34c9367f8e0068ca4bcad9fb5c2c1024d02a77d.tar.gz | |
bpo-40280: Allow to compile _testcapi as builtin module (GH-30559)
Diffstat (limited to 'Modules')
| -rw-r--r-- | Modules/Setup.stdlib.in | 3 | ||||
| -rw-r--r-- | Modules/_testcapimodule.c | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/Modules/Setup.stdlib.in b/Modules/Setup.stdlib.in index 5788b44620..73f041eb2f 100644 --- a/Modules/Setup.stdlib.in +++ b/Modules/Setup.stdlib.in @@ -169,11 +169,10 @@ @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 diff --git a/Modules/_testcapimodule.c b/Modules/_testcapimodule.c index ea9c048554..7369f094fa 100644 --- a/Modules/_testcapimodule.c +++ b/Modules/_testcapimodule.c @@ -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 |
