mirror of
https://github.com/python/cpython.git
synced 2025-08-30 21:48:47 +00:00
gh-108223: test.pythoninfo and libregrtest log Py_NOGIL (#108238)
Enable with --disable-gil --without-pydebug: $ make pythoninfo|grep NOGIL sysconfig[Py_NOGIL]: 1 $ ./python -m test ... == Python build: nogil debug ...
This commit is contained in:
parent
d63972e289
commit
5afe0c17ca
2 changed files with 6 additions and 0 deletions
|
@ -228,6 +228,11 @@ def get_build_info():
|
||||||
ldflags_nodist = sysconfig.get_config_var('PY_LDFLAGS_NODIST') or ''
|
ldflags_nodist = sysconfig.get_config_var('PY_LDFLAGS_NODIST') or ''
|
||||||
|
|
||||||
build = []
|
build = []
|
||||||
|
|
||||||
|
# --disable-gil
|
||||||
|
if sysconfig.get_config_var('Py_NOGIL'):
|
||||||
|
build.append("nogil")
|
||||||
|
|
||||||
if hasattr(sys, 'gettotalrefcount'):
|
if hasattr(sys, 'gettotalrefcount'):
|
||||||
# --with-pydebug
|
# --with-pydebug
|
||||||
build.append('debug')
|
build.append('debug')
|
||||||
|
|
|
@ -492,6 +492,7 @@ def collect_sysconfig(info_add):
|
||||||
'PY_STDMODULE_CFLAGS',
|
'PY_STDMODULE_CFLAGS',
|
||||||
'Py_DEBUG',
|
'Py_DEBUG',
|
||||||
'Py_ENABLE_SHARED',
|
'Py_ENABLE_SHARED',
|
||||||
|
'Py_NOGIL',
|
||||||
'SHELL',
|
'SHELL',
|
||||||
'SOABI',
|
'SOABI',
|
||||||
'prefix',
|
'prefix',
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue