gh-110437: Allow overriding VCRuntimeDLL with a semicolon separated list of DLLs to bundle (GH-110470)
(cherry picked from commit
12cc6792d0ca1d0b72712d77c6efcb0aa0c7e7ba)
Co-authored-by: Steve Dower <steve.dower@python.org>
--- /dev/null
+Allows overriding the source of VC redistributables so that releases can be
+guaranteed to never downgrade between updates.
</Target>
<Target Name="FindVCRuntime" Returns="VCRuntimeDLL" DependsOnTargets="FindVCRedistDir">
- <ItemGroup Condition="$(VCInstallDir) != ''">
+ <ItemGroup Condition="$(VCRuntimeDLL) != ''">
+ <VCRuntimeDLL Include="$(VCRuntimeDLL)" />
+ </ItemGroup>
+ <ItemGroup Condition="$(VCInstallDir) != '' and $(VCRuntimeDLL) == ''">
<VCRuntimeDLL Include="$(VCRedistDir)\Microsoft.VC*.CRT\vcruntime*.dll" />
</ItemGroup>