https://github.com/python/cpython/commit/5914a211ef5542edd1f792c2684e373a42647b04
commit: 5914a211ef5542edd1f792c2684e373a42647b04
branch: main
author: adang1345 <[email protected]>
committer: zooba <[email protected]>
date: 2024-02-08T21:42:45Z
summary:

gh-115167: Exclude vcruntime140_threads.dll from Windows build output 
(GH-115176)

files:
A Misc/NEWS.d/next/Build/2024-02-08-19-36-20.gh-issue-115167.LB9nDK.rst
M 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
index 00000000000000..c60c4a93fe8906
--- /dev/null
+++ b/Misc/NEWS.d/next/Build/2024-02-08-19-36-20.gh-issue-115167.LB9nDK.rst
@@ -0,0 +1 @@
+Avoid vendoring ``vcruntime140_threads.dll`` when building with Visual Studio 
2022 version 17.8.
diff --git a/PCbuild/pyproject.props b/PCbuild/pyproject.props
index fd5fbc9e910eee..9c85e5efa4af4a 100644
--- a/PCbuild/pyproject.props
+++ b/PCbuild/pyproject.props
@@ -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) == ''" />

_______________________________________________
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]

Reply via email to