8000 bpo-44535: Enable building with Visual Studio 2022 on Windows (GH-26962) · python/cpython@d3a95c1 · GitHub
[go: up one dir, main page]

Skip to content

Commit d3a95c1

Browse files
authored
bpo-44535: Enable building with Visual Studio 2022 on Windows (GH-26962)
1 parent 95919b0 commit d3a95c1
8000

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Enable building using a Visual Studio 2022 install on Windows.

PCbuild/python.props

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
1212
We set BasePlatformToolset for ICC's benefit, it's otherwise ignored.
1313
-->
14+
<BasePlatformToolset Condition="'$(BasePlatformToolset)' == '' and ('$(MSBuildToolsVersion)' == '17.0' or '$(VisualStudioVersion)' == '17.0')">v142</BasePlatformToolset>
1415
<BasePlatformToolset Condition="'$(BasePlatformToolset)' == '' and ('$(MSBuildToolsVersion)' == '16.0' or '$(VisualStudioVersion)' == '16.0')">v142</BasePlatformToolset>
1516
<BasePlatformToolset Condition="'$(BasePlatformToolset)' == '' and ('$(MSBuildToolsVersion)' == '15.0' or '$(VisualStudioVersion)' == '15.0')">v141</BasePlatformToolset>
1617
<BasePlatformToolset Condition="'$(BasePlatformToolset)' == '' and '$(VCTargetsPath14)' != ''">v140</BasePlatformToolset>

0 commit comments

Comments
 (0)
0