From 839e029fad5709e1a15523b4ffb5c493e5009317 Mon Sep 17 00:00:00 2001 From: Chris Eibl <138194463+chris-eibl@users.noreply.github.com> Date: Tue, 10 Feb 2026 18:23:33 +0100 Subject: [PATCH 1/2] Use PlatformToolSet v145 by default when building with VS 2026 Furthermore, do not warn anymore when building with v145 --- PCbuild/python.props | 2 +- PCbuild/pythoncore.vcxproj | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/PCbuild/python.props b/PCbuild/python.props index 7840e2a1cfc8e2..58240539ba5bac 100644 --- a/PCbuild/python.props +++ b/PCbuild/python.props @@ -11,7 +11,7 @@ We set BasePlatformToolset for ICC's benefit, it's otherwise ignored. --> - v143 + v145 v143 v142 v141 diff --git a/PCbuild/pythoncore.vcxproj b/PCbuild/pythoncore.vcxproj index 5e7e739dc5f787..d3bfbf8cf18b09 100644 --- a/PCbuild/pythoncore.vcxproj +++ b/PCbuild/pythoncore.vcxproj @@ -728,7 +728,7 @@ - + From 0f803d49f9acdf15f263f5d5ec41cdecf0ede326 Mon Sep 17 00:00:00 2001 From: Chris Eibl <138194463+chris-eibl@users.noreply.github.com> Date: Tue, 10 Feb 2026 18:26:34 +0100 Subject: [PATCH 2/2] Blurb it. --- .../next/Build/2026-02-10-18-26-04.gh-issue-144679.FIH73W.rst | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 Misc/NEWS.d/next/Build/2026-02-10-18-26-04.gh-issue-144679.FIH73W.rst diff --git a/Misc/NEWS.d/next/Build/2026-02-10-18-26-04.gh-issue-144679.FIH73W.rst b/Misc/NEWS.d/next/Build/2026-02-10-18-26-04.gh-issue-144679.FIH73W.rst new file mode 100644 index 00000000000000..ebcfda54da39a7 --- /dev/null +++ b/Misc/NEWS.d/next/Build/2026-02-10-18-26-04.gh-issue-144679.FIH73W.rst @@ -0,0 +1,2 @@ +When building with Visual Studio 2026 (Version 18), use PlatformToolSet v145 +by default. Patch by Chris Eibl.