diff options
author | Victor Stinner <vstinner@redhat.com> | 2019-04-24 22:56:28 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-04-24 22:56:28 (GMT) |
commit | f4e4703e746067d6630410408d414b11003334d6 (patch) | |
tree | ce2b2d0476b42da4c287dd686dbe499c93d92c33 /Include | |
parent | 888f37bc2826d9ab2cbec6f153e7f58a34785c4a (diff) | |
download | cpython-f4e4703e746067d6630410408d414b11003334d6.zip cpython-f4e4703e746067d6630410408d414b11003334d6.tar.gz cpython-f4e4703e746067d6630410408d414b11003334d6.tar.bz2 |
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 'Include')
-rw-r--r-- | Include/object.h | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/Include/object.h b/Include/object.h index 86cbfc5..13e88a6 100644 --- a/Include/object.h +++ b/Include/object.h @@ -54,13 +54,8 @@ A standard interface exists for objects that contain an array of items whose size is determined when the object is allocated. */ -/* Py_DEBUG implies Py_TRACE_REFS. */ -#if defined(Py_DEBUG) && !defined(Py_TRACE_REFS) -#define Py_TRACE_REFS -#endif - -/* Py_TRACE_REFS implies Py_REF_DEBUG. */ -#if defined(Py_TRACE_REFS) && !defined(Py_REF_DEBUG) +/* Py_DEBUG implies Py_REF_DEBUG. */ +#if defined(Py_DEBUG) && !defined(Py_REF_DEBUG) #define Py_REF_DEBUG #endif |