]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-115167: Exclude vcruntime140_threads.dll from Windows build output (GH-115176)
authoradang1345 <adang1345@gmail.com>
Thu, 8 Feb 2024 21:42:45 +0000 (16:42 -0500)
committerGitHub <noreply@github.com>
Thu, 8 Feb 2024 21:42:45 +0000 (21:42 +0000)
Misc/NEWS.d/next/Build/2024-02-08-19-36-20.gh-issue-115167.LB9nDK.rst [new file with mode: 0644]
PCbuild/pyproject.props

diff --git a/Misc/NEWS.d/next/Build/2024-02-08-19-36-20.gh-issue-115167.LB9nDK.rst b/Misc/NEWS.d/next/Build/2024-02-08-19-36-20.gh-issue-115167.LB9nDK.rst
new file mode 100644 (file)
index 0000000..c60c4a9
--- /dev/null
@@ -0,0 +1 @@
+Avoid vendoring ``vcruntime140_threads.dll`` when building with Visual Studio 2022 version 17.8.
index fd5fbc9e910eee4b7ceff6281e76d5f8a4198aa9..9c85e5efa4af4ade3c5b3d82ed11d80ec406b706 100644 (file)
@@ -250,7 +250,7 @@ public override bool Execute() {
       <VCRuntimeDLL Include="$(VCRuntimeDLL)" />
     </ItemGroup>
     <ItemGroup Condition="$(VCInstallDir) != '' and $(VCRuntimeDLL) == ''">
-      <VCRuntimeDLL Include="$(VCRedistDir)\Microsoft.VC*.CRT\vcruntime*.dll" />
+      <VCRuntimeDLL Include="$(VCRedistDir)\Microsoft.VC*.CRT\vcruntime*.dll" Exclude="$(VCRedistDir)\Microsoft.VC*.CRT\vcruntime*_threads.dll" />
     </ItemGroup>
 
     <Warning Text="vcruntime*.dll not found under $(VCRedistDir)." Condition="@(VCRuntimeDLL) == ''" />