summaryrefslogtreecommitdiffstats
path: root/PCbuild
diff options
context:
space:
mode:
authorSteve Dower <steve.dower@microsoft.com>2016-04-13 03:11:45 (GMT)
committerSteve Dower <steve.dower@microsoft.com>2016-04-13 03:11:45 (GMT)
commita4d41b3a3edadbe83371c16a4333cea9b790fac7 (patch)
tree972b07b7be17f6ecfc2231615de94e300c112b4c /PCbuild
parent0cab9c1ebaa11bb7838a552c671c903156262ab7 (diff)
parenta7a222fde79af10dcccbfbd30f24e41913b2473d (diff)
downloadcpython-a4d41b3a3edadbe83371c16a4333cea9b790fac7.zip
cpython-a4d41b3a3edadbe83371c16a4333cea9b790fac7.tar.gz
cpython-a4d41b3a3edadbe83371c16a4333cea9b790fac7.tar.bz2
Closes #26624: Adds validation of ucrtbase[d].dll version with warning for old versions.
Diffstat (limited to 'PCbuild')
-rw-r--r--PCbuild/python.vcxproj7
1 files changed, 7 insertions, 0 deletions
diff --git a/PCbuild/python.vcxproj b/PCbuild/python.vcxproj
index f9580be..60116df 100644
--- a/PCbuild/python.vcxproj
+++ b/PCbuild/python.vcxproj
@@ -83,6 +83,13 @@
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label="ExtensionTargets">
</ImportGroup>
+ <Target Name="ValidateUcrtbase" AfterTargets="AfterBuild">
+ <PropertyGroup>
+ <UcrtName>ucrtbase</UcrtName>
+ <UcrtName Condition="'$(Configuration)' == 'Debug'">ucrtbased</UcrtName>
+ </PropertyGroup>
+ <Exec Command='"$(OutDir)python$(PyDebugExt).exe" "$(PySourcePath)PC\validate_ucrtbase.py" $(UcrtName)' ContinueOnError="true" />
+ </Target>
<Target Name="GeneratePythonBat" AfterTargets="AfterBuild">
<PropertyGroup>
<_Content>@rem This script invokes the most recently built Python with all arguments