summaryrefslogtreecommitdiffstats
path: root/PCbuild
diff options
context:
space:
mode:
authorSteve Dower <steve.dower@python.org>2020-03-03 00:04:11 (GMT)
committerGitHub <noreply@github.com>2020-03-03 00:04:11 (GMT)
commitce3a4984089b8e0ce5422ca32d75ad057b008074 (patch)
tree6c0c05ae9b8d47047d4304019beb4199586b637c /PCbuild
parent0c2b509f9d1d3a9065bc62c2407e1dc2ed70e9c2 (diff)
downloadcpython-ce3a4984089b8e0ce5422ca32d75ad057b008074.zip
cpython-ce3a4984089b8e0ce5422ca32d75ad057b008074.tar.gz
cpython-ce3a4984089b8e0ce5422ca32d75ad057b008074.tar.bz2
bpo-38597: Never statically link extension initialization code on Windows (GH-18724)
Diffstat (limited to 'PCbuild')
-rw-r--r--PCbuild/pythoncore.vcxproj2
1 files changed, 2 insertions, 0 deletions
diff --git a/PCbuild/pythoncore.vcxproj b/PCbuild/pythoncore.vcxproj
index 0acf7f4..ac73a91 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">