From d6b52d602e4512100f175702ad5c954fe8964684 Mon Sep 17 00:00:00 2001 From: Chris Eibl <138194463+chris-eibl@users.noreply.github.com> Date: Thu, 19 Feb 2026 13:38:46 +0100 Subject: [PATCH 1/2] GH-144679: When building with VS 2026 on Windows, use PlatformToolset v145 by default (GH-144680) (cherry picked from commit c06f4f43015528db45bd6b44b46c057d88b38583) Co-authored-by: Chris Eibl <138194463+chris-eibl@users.noreply.github.com> --- .../next/Build/2026-02-10-18-26-04.gh-issue-144679.FIH73W.rst | 2 ++ PCbuild/python.props | 2 +- PCbuild/pythoncore.vcxproj | 2 +- Tools/msi/bundle/bootstrap/pythonba.vcxproj | 1 + 4 files changed, 5 insertions(+), 2 deletions(-) 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 000000000000000..ebcfda54da39a75 --- /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. diff --git a/PCbuild/python.props b/PCbuild/python.props index 8ed6269b89149d4..15c120302a456e1 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 b911c9385634d77..69d83764fbe94bd 100644 --- a/PCbuild/pythoncore.vcxproj +++ b/PCbuild/pythoncore.vcxproj @@ -716,7 +716,7 @@ - + diff --git a/Tools/msi/bundle/bootstrap/pythonba.vcxproj b/Tools/msi/bundle/bootstrap/pythonba.vcxproj index 3970e857894ba52..4b38582f0d31e51 100644 --- a/Tools/msi/bundle/bootstrap/pythonba.vcxproj +++ b/Tools/msi/bundle/bootstrap/pythonba.vcxproj @@ -21,6 +21,7 @@ Release Win32 + v145 v143 v142 v141 From ef56e51549a378cc587f98aad7d97e10911a041f Mon Sep 17 00:00:00 2001 From: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com> Date: Tue, 2 Jun 2026 17:55:28 +0300 Subject: [PATCH 2/2] Silence experimental coroutine deprecation warnings (#150788) Co-authored-by: Zachary Ware (cherry picked from commit 7241db11699f74d2e90d04cdaa8ecde2ffcfc7bf) --- PC/python_uwp.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/PC/python_uwp.cpp b/PC/python_uwp.cpp index b9c408a580c9992..04174222ea8998c 100644 --- a/PC/python_uwp.cpp +++ b/PC/python_uwp.cpp @@ -13,6 +13,7 @@ #if defined(__clang__) #define _SILENCE_CLANG_COROUTINE_MESSAGE #endif +#define _SILENCE_EXPERIMENTAL_COROUTINE_DEPRECATION_WARNINGS #include #include