]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-44535: Enable building with Visual Studio 2022 on Windows (GH-26962)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Wed, 30 Jun 2021 19:31:04 +0000 (12:31 -0700)
committerGitHub <noreply@github.com>
Wed, 30 Jun 2021 19:31:04 +0000 (12:31 -0700)
(cherry picked from commit d3a95c1b6eacbbbd92c294744e7ed41932f3f63e)

Co-authored-by: Steve Dower <steve.dower@python.org>
Misc/NEWS.d/next/Build/2021-06-30-02-32-46.bpo-44535.M9iN4-.rst [new file with mode: 0644]
PCbuild/python.props

diff --git a/Misc/NEWS.d/next/Build/2021-06-30-02-32-46.bpo-44535.M9iN4-.rst b/Misc/NEWS.d/next/Build/2021-06-30-02-32-46.bpo-44535.M9iN4-.rst
new file mode 100644 (file)
index 0000000..e06d0d3
--- /dev/null
@@ -0,0 +1 @@
+Enable building using a Visual Studio 2022 install on Windows.
index 419d5ebe84c2d118d940fe5a607ecf8f5626bda4..acbf4e005ec5bae24713d3b63c79ba9f49ac31d9 100644 (file)
@@ -11,6 +11,7 @@
 
     We set BasePlatformToolset for ICC's benefit, it's otherwise ignored.
     -->
+    <BasePlatformToolset Condition="'$(BasePlatformToolset)' == '' and ('$(MSBuildToolsVersion)' == '17.0' or '$(VisualStudioVersion)' == '17.0')">v142</BasePlatformToolset>
     <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>