summaryrefslogtreecommitdiff
path: root/PCbuild/pythoncore.vcxproj
diff options
context:
space:
mode:
authorSteve Dower <steve.dower@python.org>2020-03-03 00:04:11 +0000
committerGitHub <noreply@github.com>2020-03-03 00:04:11 +0000
commitce3a4984089b8e0ce5422ca32d75ad057b008074 (patch)
tree6c0c05ae9b8d47047d4304019beb4199586b637c /PCbuild/pythoncore.vcxproj
parent0c2b509f9d1d3a9065bc62c2407e1dc2ed70e9c2 (diff)
downloadcpython-git-ce3a4984089b8e0ce5422ca32d75ad057b008074.tar.gz
bpo-38597: Never statically link extension initialization code on Windows (GH-18724)
Diffstat (limited to 'PCbuild/pythoncore.vcxproj')
-rw-r--r--PCbuild/pythoncore.vcxproj2
1 files changed, 2 insertions, 0 deletions
diff --git a/PCbuild/pythoncore.vcxproj b/PCbuild/pythoncore.vcxproj
index 0acf7f4a8d..ac73a91263 100644
--- a/PCbuild/pythoncore.vcxproj
+++ b/PCbuild/pythoncore.vcxproj
@@ -536,6 +536,8 @@
<VCRuntimeDLL Include="$(VCRedistDir)\**\vcruntime*.dll" />
</ItemGroup>
<Target Name="_CopyVCRuntime" AfterTargets="Build" Inputs="@(VCRuntimeDLL)" Outputs="$(OutDir)%(Filename)%(Extension)">
+ <!-- bpo-38597: When we switch to another VCRuntime DLL, include vcruntime140.dll as well -->
+ <Warning Text="A copy of vcruntime140.dll is also required" Condition="!$(VCToolsRedistVersion.StartsWith(`14.`))" />
<Copy SourceFiles="%(VCRuntimeDLL.FullPath)" DestinationFolder="$(OutDir)" />
</Target>
<Target Name="_CleanVCRuntime" AfterTargets="Clean">