mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
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
This commit is contained in:
parent
888f37bc28
commit
f4e4703e74
7 changed files with 57 additions and 14 deletions
|
@ -1653,7 +1653,7 @@ def python_is_optimized():
|
|||
|
||||
_header = 'nP'
|
||||
_align = '0n'
|
||||
if hasattr(sys, "gettotalrefcount"):
|
||||
if hasattr(sys, "getobjects"):
|
||||
_header = '2P' + _header
|
||||
_align = '0P'
|
||||
_vheader = _header + 'n'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue