Skip to content

Commit cf12bef

Browse files
GIL is not properly disabled for _freeze_module.vcxproj
1 parent 81376fe commit cf12bef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

PCbuild/_freeze_module.vcxproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -448,7 +448,7 @@
448448
<OldPyConfigH Condition="Exists('$(IntDir)pyconfig.h')">$([System.IO.File]::ReadAllText('$(IntDir)pyconfig.h'))</OldPyConfigH>
449449
</PropertyGroup>
450450
<PropertyGroup Condition="$(DisableGil) == 'true'">
451-
<PyConfigHText>$(PyConfigHText.Replace('#undef Py_GIL_DISABLED', '#define Py_GIL_DISABLED 1'))</PyConfigHText>
451+
<PyConfigHText>$(PyConfigHText.Replace('/* #define Py_GIL_DISABLED 1 */', '#define Py_GIL_DISABLED 1'))</PyConfigHText>
452452
</PropertyGroup>
453453
<Message Text="Updating pyconfig.h" Condition="$(PyConfigHText.TrimEnd()) != $(OldPyConfigH.TrimEnd())" />
454454
<WriteLinesToFile File="$(IntDir)pyconfig.h"

0 commit comments

Comments
 (0)