Skip to content

Commit

Permalink
pythongh-111650: Generate pyconfig.h on Windows
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
colesbury committed Nov 16, 2023
1 parent 3fb1f27 commit e4c3520
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -92,6 +92,7 @@ Programs/_testembed
PC/python_nt*.h
PC/pythonnt_rc*.h
Modules/python.exp
PC/pyconfig.h
PC/*/*.exp
PC/*/*.lib
PC/*/*.bsc
Expand Down

0 comments on commit e4c3520

Please sign in to comment.