]> granicus.if.org Git - python/commitdiff
bpo-37238: Enable building for Windows using Visual Studio 2019 (GH-13988)
authorPaul Monson <paulmon@users.noreply.github.com>
Tue, 11 Jun 2019 22:03:17 +0000 (15:03 -0700)
committerSteve Dower <steve.dower@python.org>
Tue, 11 Jun 2019 22:03:17 +0000 (15:03 -0700)
PCbuild/python.props
PCbuild/pythoncore.vcxproj

index 11638fe348c86347345a0c62ebd1906c8e4d5e47..e6642fc4818a0acc399d47c3fd92545dc563e95a 100644 (file)
@@ -10,6 +10,7 @@
 
     We set BasePlatformToolset for ICC's benefit, it's otherwise ignored.
     -->
+    <BasePlatformToolset Condition="'$(BasePlatformToolset)' == '' and ('$(MSBuildToolsVersion)' == '16.0' or '$(VisualStudioVersion)' == '16.0')">v142</BasePlatformToolset>
     <BasePlatformToolset Condition="'$(BasePlatformToolset)' == '' and ('$(MSBuildToolsVersion)' == '15.0' or '$(VisualStudioVersion)' == '15.0')">v141</BasePlatformToolset>
     <BasePlatformToolset Condition="'$(BasePlatformToolset)' == '' and '$(VCTargetsPath14)' != ''">v140</BasePlatformToolset>
     <BasePlatformToolset Condition="'$(BasePlatformToolset)' == '' and '$(VCTargetsPath12)' != ''">v120</BasePlatformToolset>
index 89625da944e1ab48c55d411cba8d73341662d64b..09a63c04eab82c1866016642b0f1e45ed2b50343 100644 (file)
       </ClCompile>
     </ItemGroup>
   </Target>
-  <Target Name="_WarnAboutToolset" BeforeTargets="PrepareForBuild" Condition="$(PlatformToolset) != 'v140' and $(PlatformToolset) != 'v141'">
+  <Target Name="_WarnAboutToolset" BeforeTargets="PrepareForBuild" Condition="$(PlatformToolset) != 'v140' and $(PlatformToolset) != 'v141' and $(PlatformToolset) != 'v142'">
     <Warning Text="Toolset $(PlatformToolset) is not used for official builds. Your build may have errors or incompatibilities." />
   </Target>
   <Target Name="_WarnAboutZlib" BeforeTargets="PrepareForBuild" Condition="!$(IncludeExternals)">