Skip to content

Commit 12cc679

Browse files
authored
gh-110437: Allow overriding VCRuntimeDLL with a semicolon separated list of DLLs to bundle (GH-110470)
1 parent ea39c87 commit 12cc679

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Allows overriding the source of VC redistributables so that releases can be
2+
guaranteed to never downgrade between updates.

PCbuild/pyproject.props

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,10 @@ public override bool Execute() {
233233
</Target>
234234

235235
<Target Name="FindVCRuntime" Returns="VCRuntimeDLL" DependsOnTargets="FindVCRedistDir">
236-
<ItemGroup Condition="$(VCInstallDir) != ''">
236+
<ItemGroup Condition="$(VCRuntimeDLL) != ''">
237+
<VCRuntimeDLL Include="$(VCRuntimeDLL)" />
238+
</ItemGroup>
239+
<ItemGroup Condition="$(VCInstallDir) != '' and $(VCRuntimeDLL) == ''">
237240
<VCRuntimeDLL Include="$(VCRedistDir)\Microsoft.VC*.CRT\vcruntime*.dll" />
238241
</ItemGroup>
239242

0 commit comments

Comments
 (0)