summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Lib/test/libregrtest/utils.py5
-rw-r--r--Lib/test/pythoninfo.py1
2 files changed, 6 insertions, 0 deletions
diff --git a/Lib/test/libregrtest/utils.py b/Lib/test/libregrtest/utils.py
index fd46819..89a149e 100644
--- a/Lib/test/libregrtest/utils.py
+++ b/Lib/test/libregrtest/utils.py
@@ -228,6 +228,11 @@ def get_build_info():
ldflags_nodist = sysconfig.get_config_var('PY_LDFLAGS_NODIST') or ''
build = []
+
+ # --disable-gil
+ if sysconfig.get_config_var('Py_NOGIL'):
+ build.append("nogil")
+
if hasattr(sys, 'gettotalrefcount'):
# --with-pydebug
build.append('debug')
diff --git a/Lib/test/pythoninfo.py b/Lib/test/pythoninfo.py
index e4e098d..ad7d529 100644
--- a/Lib/test/pythoninfo.py
+++ b/Lib/test/pythoninfo.py
@@ -492,6 +492,7 @@ def collect_sysconfig(info_add):
'PY_STDMODULE_CFLAGS',
'Py_DEBUG',
'Py_ENABLE_SHARED',
+ 'Py_NOGIL',
'SHELL',
'SOABI',
'prefix',