From 5defb9edcbaffe683b709a1e40c0403a2cb2a530 Mon Sep 17 00:00:00 2001 From: tonghuaroot Date: Thu, 19 Nov 2026 17:34:42 +0800 Subject: [PATCH 1/3] gh-153668: Extend WinARM64 compiler workaround to MSVC 14.52 MSVC 14.52 still triggers the excessive-memory optimizer failure in unicodectype.c. Apply the existing Windows ARM64 workaround to this toolset version. --- .../next/Build/2026-11-19-17-34-03.gh-issue-153668.A7mK2q.rst | 2 ++ PCbuild/pyproject.props | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 Misc/NEWS.d/next/Build/2026-11-19-17-34-03.gh-issue-153668.A7mK2q.rst diff --git a/Misc/NEWS.d/next/Build/2026-11-19-17-34-03.gh-issue-153668.A7mK2q.rst b/Misc/NEWS.d/next/Build/2026-11-19-17-34-03.gh-issue-153668.A7mK2q.rst new file mode 100644 index 00000000000000..44c4ba3b5268a3 --- /dev/null +++ b/Misc/NEWS.d/next/Build/2026-11-19-17-34-03.gh-issue-153668.A7mK2q.rst @@ -0,0 +1,2 @@ +Apply the existing ``unicodectype.c`` optimization workaround to Windows +ARM64 release builds using MSVC 14.52. diff --git a/PCbuild/pyproject.props b/PCbuild/pyproject.props index 67296c22806c3e..95998b6de2d866 100644 --- a/PCbuild/pyproject.props +++ b/PCbuild/pyproject.props @@ -41,7 +41,7 @@ true true - true + true From 3c40bfa76ee5b45813743a57cab3c7ca27f85357 Mon Sep 17 00:00:00 2001 From: tonghuaroot Date: Sat, 21 Nov 2026 10:15:58 +0800 Subject: [PATCH 2/3] gh-153668: Clarify affected Windows build --- .../next/Build/2026-11-19-17-34-03.gh-issue-153668.A7mK2q.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Misc/NEWS.d/next/Build/2026-11-19-17-34-03.gh-issue-153668.A7mK2q.rst b/Misc/NEWS.d/next/Build/2026-11-19-17-34-03.gh-issue-153668.A7mK2q.rst index 44c4ba3b5268a3..909385912f214c 100644 --- a/Misc/NEWS.d/next/Build/2026-11-19-17-34-03.gh-issue-153668.A7mK2q.rst +++ b/Misc/NEWS.d/next/Build/2026-11-19-17-34-03.gh-issue-153668.A7mK2q.rst @@ -1,2 +1,2 @@ -Apply the existing ``unicodectype.c`` optimization workaround to Windows -ARM64 release builds using MSVC 14.52. +Disable ``unicodectype.c`` optimization in regular Windows ARM64 Release +builds due to a compiler bug in MSVC 14.50, 14.51, and 14.52. From b65b78a97d0d3fec67a58134719663f352009d6a Mon Sep 17 00:00:00 2001 From: Chris Eibl <138194463+chris-eibl@users.noreply.github.com> Date: Sat, 21 Nov 2026 08:52:07 +0100 Subject: [PATCH 3/3] Update news wrt PGO --- .../next/Build/2026-11-19-17-34-03.gh-issue-153668.A7mK2q.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Misc/NEWS.d/next/Build/2026-11-19-17-34-03.gh-issue-153668.A7mK2q.rst b/Misc/NEWS.d/next/Build/2026-11-19-17-34-03.gh-issue-153668.A7mK2q.rst index 909385912f214c..95de6504bdbd07 100644 --- a/Misc/NEWS.d/next/Build/2026-11-19-17-34-03.gh-issue-153668.A7mK2q.rst +++ b/Misc/NEWS.d/next/Build/2026-11-19-17-34-03.gh-issue-153668.A7mK2q.rst @@ -1,2 +1,2 @@ Disable ``unicodectype.c`` optimization in regular Windows ARM64 Release -builds due to a compiler bug in MSVC 14.50, 14.51, and 14.52. +builds due to a compiler bug in MSVC 14.50, 14.51, and 14.52. PGO builds are not affected.