summaryrefslogtreecommitdiffstats
path: root/PCbuild
diff options
context:
space:
mode:
authorSteve Dower <steve.dower@python.org>2023-10-09 11:17:42 (GMT)
committerGitHub <noreply@github.com>2023-10-09 11:17:42 (GMT)
commit12cc6792d0ca1d0b72712d77c6efcb0aa0c7e7ba (patch)
tree3cdaf548b9837695085d311e3b3d37d95162f0a6 /PCbuild
parentea39c877c0a8e7a717f2e4bf7d92a3a8780e67c0 (diff)
downloadcpython-12cc6792d0ca1d0b72712d77c6efcb0aa0c7e7ba.zip
cpython-12cc6792d0ca1d0b72712d77c6efcb0aa0c7e7ba.tar.gz
cpython-12cc6792d0ca1d0b72712d77c6efcb0aa0c7e7ba.tar.bz2
gh-110437: Allow overriding VCRuntimeDLL with a semicolon separated list of DLLs to bundle (GH-110470)
Diffstat (limited to 'PCbuild')
-rw-r--r--PCbuild/pyproject.props5
1 files changed, 4 insertions, 1 deletions
diff --git a/PCbuild/pyproject.props b/PCbuild/pyproject.props
index 9db400e..b8d2d3d 100644
--- a/PCbuild/pyproject.props
+++ b/PCbuild/pyproject.props
@@ -233,7 +233,10 @@ public override bool Execute() {
</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>