mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
gh-127405: Add ABIFLAGS to sysconfig variables on Windows (GH-131799)
This commit is contained in:
parent
9ded6f0830
commit
26ae05e95c
7 changed files with 99 additions and 7 deletions
|
@ -67,6 +67,16 @@ _sysconfig_config_vars_impl(PyObject *module)
|
|||
return NULL;
|
||||
}
|
||||
|
||||
#ifdef Py_DEBUG
|
||||
PyObject *py_debug = _PyLong_GetOne();
|
||||
#else
|
||||
PyObject *py_debug = _PyLong_GetZero();
|
||||
#endif
|
||||
if (PyDict_SetItemString(config, "Py_DEBUG", py_debug) < 0) {
|
||||
Py_DECREF(config);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
return config;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue