]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Increase stack reserve size for Windows debug builds to avoid test crashes (GH-102776)
authorSteve Dower <steve.dower@python.org>
Fri, 17 Mar 2023 11:37:56 +0000 (11:37 +0000)
committerGitHub <noreply@github.com>
Fri, 17 Mar 2023 11:37:56 +0000 (11:37 +0000)
PCbuild/python.vcxproj
PCbuild/pythonw.vcxproj

index b6dcf14823546e6ef529c46698265613db5308a9..0adce0958b17fe8159e5b9535e8a7ff8c9e8ba1e 100644 (file)
@@ -94,7 +94,8 @@
     </ClCompile>
     <Link>
       <SubSystem>Console</SubSystem>
-      <StackReserveSize>2000000</StackReserveSize>
+      <StackReserveSize Condition="$(Configuration) != 'Debug'">2000000</StackReserveSize>
+      <StackReserveSize Condition="$(Configuration) == 'Debug'">8000000</StackReserveSize>
     </Link>
   </ItemDefinitionGroup>
   <ItemGroup>
index e7216dec3a1af02635e41e89dff770fdeb993f3e..e23635e5ea9411bfb8bd48b2692aa17beeccddba 100644 (file)
@@ -89,7 +89,8 @@
   </PropertyGroup>
   <ItemDefinitionGroup>
     <Link>
-      <StackReserveSize>2000000</StackReserveSize>
+      <StackReserveSize Condition="$(Configuration) != 'Debug'">2000000</StackReserveSize>
+      <StackReserveSize Condition="$(Configuration) == 'Debug'">8000000</StackReserveSize>
     </Link>
   </ItemDefinitionGroup>
   <ItemGroup>