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

This commit is contained in:
adang1345 2024-02-08 16:42:45 -05:00 committed by GitHub
parent ed1a8daf10
commit 5914a211ef
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 1 deletions

View file

@ -0,0 +1 @@
Avoid vendoring ``vcruntime140_threads.dll`` when building with Visual Studio 2022 version 17.8.

View 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) == ''" />