diff options
author | Victor Stinner <vstinner@redhat.com> | 2019-04-25 00:56:28 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-04-25 00:56:28 +0200 |
commit | f4e4703e746067d6630410408d414b11003334d6 (patch) | |
tree | ce2b2d0476b42da4c287dd686dbe499c93d92c33 /pyconfig.h.in | |
parent | Add @pablogsal to code owners file for Parser/pgen (GH-12944) (diff) | |
download | cpython-f4e4703e746067d6630410408d414b11003334d6.tar.gz cpython-f4e4703e746067d6630410408d414b11003334d6.tar.bz2 cpython-f4e4703e746067d6630410408d414b11003334d6.zip |
bpo-36465: Make release and debug ABI compatible (GH-12615)
Release build and debug build are now ABI compatible: the Py_DEBUG
define no longer implies Py_TRACE_REFS define which introduces the
only ABI incompatibility.
A new "./configure --with-trace-refs" build option is now required to
get Py_TRACE_REFS define which adds sys.getobjects() function and
PYTHONDUMPREFS environment variable.
Changes:
* Add ./configure --with-trace-refs
* Py_DEBUG no longer implies Py_TRACE_REFS
Diffstat (limited to 'pyconfig.h.in')
-rw-r--r-- | pyconfig.h.in | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/pyconfig.h.in b/pyconfig.h.in index d41d5793276..562c0271133 100644 --- a/pyconfig.h.in +++ b/pyconfig.h.in @@ -1374,6 +1374,9 @@ externally defined: 0 */ #undef Py_HASH_ALGORITHM +/* Define if you want to enable tracing references for debugging purpose */ +#undef Py_TRACE_REFS + /* assume C89 semantics that RETSIGTYPE is always void */ #undef RETSIGTYPE |