diff options
| author | shadchin <[email protected]> | 2026-04-11 20:54:24 +0300 |
|---|---|---|
| committer | shadchin <[email protected]> | 2026-04-11 21:12:23 +0300 |
| commit | 467f8e26f672fa7ddf8c1f74f495c376e36d302d (patch) | |
| tree | b5fe451149dda33760b2fb091a7df7a2b1cf1fda /contrib/tools/python3/Include/pyconfig.h | |
| parent | b1855ac6de8eb21270558ba8790e23fe75070d26 (diff) | |
Rework `pyconfig.h`
commit_hash:826de8ce55126c9f2a15bb1dcdd1227e0e069615
Diffstat (limited to 'contrib/tools/python3/Include/pyconfig.h')
| -rw-r--r-- | contrib/tools/python3/Include/pyconfig.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/contrib/tools/python3/Include/pyconfig.h b/contrib/tools/python3/Include/pyconfig.h index f8de6597892..d3a8647f708 100644 --- a/contrib/tools/python3/Include/pyconfig.h +++ b/contrib/tools/python3/Include/pyconfig.h @@ -12,6 +12,24 @@ # include "pyconfig-musl.h" #endif +#undef Py_DEBUG + +/* Define if you want to build an interpreter with many run-time checks. */ +#if !defined(NDEBUG) && !defined(Py_LIMITED_API) && !defined(DISABLE_PYDEBUG) +#define Py_DEBUG +#define GC_NDEBUG +#endif + +#ifdef Py_DEBUG +#define ABIFLAGS "d" +#else +#define ABIFLAGS "" +#endif + +#ifdef address_sanitizer_enabled +#undef WITH_PYMALLOC +#endif + #if WITH_MIMALLOC #define _mi_abandoned_await_readers _python3__mi_abandoned_await_readers |
