mirror of
https://github.com/python/cpython.git
synced 2025-11-25 21:11:09 +00:00
gh-91325: Skip Stable ABI checks with Py_TRACE_REFS special build (GH-92046)
Skip Stable ABI checks with Py_TRACE_REFS special build This build is not compatible with Py_LIMITED_API nor with the stable ABI.
This commit is contained in:
parent
c87233fd3f
commit
15fe8cea17
4 changed files with 48 additions and 20 deletions
|
|
@ -38,6 +38,15 @@ if (res) {
|
|||
Py_DECREF(result); return NULL;
|
||||
}
|
||||
|
||||
#ifdef Py_TRACE_REFS
|
||||
res = PyDict_SetItemString(result, "Py_TRACE_REFS", Py_True);
|
||||
#else
|
||||
res = PyDict_SetItemString(result, "Py_TRACE_REFS", Py_False);
|
||||
#endif
|
||||
if (res) {
|
||||
Py_DECREF(result); return NULL;
|
||||
}
|
||||
|
||||
#ifdef USE_STACKCHECK
|
||||
res = PyDict_SetItemString(result, "USE_STACKCHECK", Py_True);
|
||||
#else
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue