Skip to content

Commit 1ee8230

Browse files
committed
Add underscore prefix to d on Windows
1 parent 7b21d7d commit 1ee8230

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

Lib/sysconfig/__init__.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -408,6 +408,9 @@ def _init_non_posix(vars):
408408
# empty string.
409409
vars.update(_sysconfig.config_vars())
410410

411+
# Add an underscore to the `d` flag. E.g, `td` -> `t_d`, `d` -> `_d`.
412+
vars['Py_DEBUG'] = vars['Py_DEBUG'].replace('d', '_d')
413+
411414
vars['LIBDIR'] = _safe_realpath(os.path.join(get_config_var('installed_base'), 'libs'))
412415
if hasattr(sys, 'dllhandle'):
413416
dllhandle = _winapi.GetModuleFileName(sys.dllhandle)

0 commit comments

Comments
 (0)