Skip to content

Commit e4c3520

Browse files
committed
gh-111650: Generate pyconfig.h on Windows
Prior to this change, the Py_NOGIL macro was not defined when building C API extensions with the `--disable-gil` build on Windows. `Py_NOGIL` was only defined as a pre-processor definition in pyproject.props, but that is not used by C-API extensions. This instead generates the `pyconfig.h` header on Windows as part of the build process. For now, `Py_NOGIL` is the only macro that may be conditionally defined in the generated file.
1 parent 3fb1f27 commit e4c3520

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ Programs/_testembed
9292
PC/python_nt*.h
9393
PC/pythonnt_rc*.h
9494
Modules/python.exp
95+
PC/pyconfig.h
9596
PC/*/*.exp
9697
PC/*/*.lib
9798
PC/*/*.bsc

0 commit comments

Comments
 (0)