https://github.com/python/cpython/commit/c26bed1160978fe8b1844878b8123778e47870c6
commit: c26bed1160978fe8b1844878b8123778e47870c6
branch: main
author: Julian Waters <[email protected]>
committer: kumaraditya303 <[email protected]>
date: 2025-02-15T14:05:54Z
summary:
gh-128345: properly disable gil for `_freeze_module.vcxproj` (#128344)
files:
M PCbuild/_freeze_module.vcxproj
diff --git a/PCbuild/_freeze_module.vcxproj b/PCbuild/_freeze_module.vcxproj
index 51b493f8a84c6f..e12876114459bc 100644
--- a/PCbuild/_freeze_module.vcxproj
+++ b/PCbuild/_freeze_module.vcxproj
@@ -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"
_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-checkins.python.org/
Member address: [email protected]