mirror of
https://github.com/python/cpython.git
synced 2025-09-27 02:39:58 +00:00
bpo-40280: Allow to compile _testcapi as builtin module (GH-30559)
This commit is contained in:
parent
fc05e6bfce
commit
e34c9367f8
4 changed files with 7 additions and 6 deletions
|
@ -169,11 +169,10 @@
|
||||||
@MODULE__XXTESTFUZZ_TRUE@_xxtestfuzz _xxtestfuzz/_xxtestfuzz.c _xxtestfuzz/fuzzer.c
|
@MODULE__XXTESTFUZZ_TRUE@_xxtestfuzz _xxtestfuzz/_xxtestfuzz.c _xxtestfuzz/fuzzer.c
|
||||||
@MODULE__TESTBUFFER_TRUE@_testbuffer _testbuffer.c
|
@MODULE__TESTBUFFER_TRUE@_testbuffer _testbuffer.c
|
||||||
@MODULE__TESTINTERNALCAPI_TRUE@_testinternalcapi _testinternalcapi.c
|
@MODULE__TESTINTERNALCAPI_TRUE@_testinternalcapi _testinternalcapi.c
|
||||||
|
@MODULE__TESTCAPI_TRUE@_testcapi _testcapimodule.c
|
||||||
|
|
||||||
# Some testing modules MUST be built as shared libraries.
|
# Some testing modules MUST be built as shared libraries.
|
||||||
*shared*
|
*shared*
|
||||||
@MODULE__TESTCAPI_TRUE@_testcapi _testcapimodule.c
|
|
||||||
@MODULE__TESTIMPORTMULTIPLE_TRUE@_testimportmultiple _testimportmultiple.c
|
@MODULE__TESTIMPORTMULTIPLE_TRUE@_testimportmultiple _testimportmultiple.c
|
||||||
@MODULE__TESTMULTIPHASE_TRUE@_testmultiphase _testmultiphase.c
|
@MODULE__TESTMULTIPHASE_TRUE@_testmultiphase _testmultiphase.c
|
||||||
@MODULE__CTYPES_TEST_TRUE@_ctypes_test _ctypes/_ctypes_test.c
|
@MODULE__CTYPES_TEST_TRUE@_ctypes_test _ctypes/_ctypes_test.c
|
||||||
|
|
|
@ -12,6 +12,8 @@
|
||||||
macro defined, but only the public C API must be tested here. */
|
macro defined, but only the public C API must be tested here. */
|
||||||
|
|
||||||
#undef Py_BUILD_CORE_MODULE
|
#undef Py_BUILD_CORE_MODULE
|
||||||
|
#undef Py_BUILD_CORE_BUILTIN
|
||||||
|
|
||||||
/* Always enable assertions */
|
/* Always enable assertions */
|
||||||
#undef NDEBUG
|
#undef NDEBUG
|
||||||
|
|
||||||
|
|
4
configure
vendored
4
configure
vendored
|
@ -21258,8 +21258,8 @@ fi
|
||||||
if test "$enable_test_modules" = no; then
|
if test "$enable_test_modules" = no; then
|
||||||
TEST_MODULES=no
|
TEST_MODULES=no
|
||||||
else
|
else
|
||||||
case $ac_sys_system in #(
|
case $ac_sys_system/$ac_sys_emscripten_target in #(
|
||||||
Emscripten) :
|
Emscripten/browser) :
|
||||||
TEST_MODULES=no ;; #(
|
TEST_MODULES=no ;; #(
|
||||||
*) :
|
*) :
|
||||||
TEST_MODULES=yes
|
TEST_MODULES=yes
|
||||||
|
|
|
@ -6309,8 +6309,8 @@ AC_ARG_ENABLE(test-modules,
|
||||||
if test "$enable_test_modules" = no; then
|
if test "$enable_test_modules" = no; then
|
||||||
TEST_MODULES=no
|
TEST_MODULES=no
|
||||||
else
|
else
|
||||||
AS_CASE([$ac_sys_system],
|
AS_CASE([$ac_sys_system/$ac_sys_emscripten_target],
|
||||||
[Emscripten], [TEST_MODULES=no],
|
[Emscripten/browser], [TEST_MODULES=no],
|
||||||
[TEST_MODULES=yes]
|
[TEST_MODULES=yes]
|
||||||
)
|
)
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue