mirror of
https://github.com/python/cpython.git
synced 2026-01-06 15:32:22 +00:00
gh-128345: properly disable gil for _freeze_module.vcxproj (#128344)
This commit is contained in:
parent
a13460ac44
commit
c26bed1160
1 changed files with 1 additions and 1 deletions
|
|
@ -448,7 +448,7 @@
|
|||
<OldPyConfigH Condition="Exists('$(IntDir)pyconfig.h')">$([System.IO.File]::ReadAllText('$(IntDir)pyconfig.h'))</OldPyConfigH>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="$(DisableGil) == 'true'">
|
||||
<PyConfigHText>$(PyConfigHText.Replace('#undef Py_GIL_DISABLED', '#define Py_GIL_DISABLED 1'))</PyConfigHText>
|
||||
<PyConfigHText>$(PyConfigHText.Replace('/* #define Py_GIL_DISABLED 1 */', '#define Py_GIL_DISABLED 1'))</PyConfigHText>
|
||||
</PropertyGroup>
|
||||
<Message Text="Updating pyconfig.h" Condition="$(PyConfigHText.TrimEnd()) != $(OldPyConfigH.TrimEnd())" />
|
||||
<WriteLinesToFile File="$(IntDir)pyconfig.h"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue