https://github.com/python/cpython/commit/474a772255c3d5d8d8bf4a3912f5e9d958fbc429
commit: 474a772255c3d5d8d8bf4a3912f5e9d958fbc429
branch: 3.15
author: Miss Islington (bot) <[email protected]>
committer: chris-eibl <[email protected]>
date: 2026-11-21T09:06:59Z
summary:

[3.15] gh-153668: Disable ``unicodectype.c`` optimization in regular Windows 
ARM64 Release builds (GH-162262) (#162368)

* gh-153668: Disable ``unicodectype.c`` optimization in regular Windows ARM64 
Release
builds due to a compiler bug in MSVC 14.50, 14.51, and 14.52. PGO builds are 
not affected.

---------
(cherry picked from commit 3d248a27dfcc6d114291bf7fb5168c175eb021da)

Co-authored-by: tonghuaroot (童话) <[email protected]>
Co-authored-by: Chris Eibl <[email protected]>

files:
A Misc/NEWS.d/next/Build/2026-11-19-17-34-03.gh-issue-153668.A7mK2q.rst
M PCbuild/pyproject.props

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 000000000000000..95de6504bdbd074
--- /dev/null
+++ b/Misc/NEWS.d/next/Build/2026-11-19-17-34-03.gh-issue-153668.A7mK2q.rst
@@ -0,0 +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. PGO builds are 
not affected.
diff --git a/PCbuild/pyproject.props b/PCbuild/pyproject.props
index ca8330c004cccea..658b1b10f74f35c 100644
--- a/PCbuild/pyproject.props
+++ b/PCbuild/pyproject.props
@@ -41,7 +41,7 @@
     <MSVCHasBrokenARM64Clamping Condition="$(_VCToolsVersion) == '14.34' or 
$(_VCToolsVersion) == '14.35'">true</MSVCHasBrokenARM64Clamping>
     <MSVCHasBrokenARM64SignExtension Condition="$(_VCToolsVersion) == 
'14.37'">true</MSVCHasBrokenARM64SignExtension>
     <!-- See gh-153668 and 
https://developercommunity.visualstudio.com/t/ARM64-compiler-uses-excessive-memory-on/11120089
 -->
-    <MSVCHasBrokenARM64UniDbOpt Condition="$(_VCToolsVersion) == '14.50' or 
$(_VCToolsVersion) == '14.51'">true</MSVCHasBrokenARM64UniDbOpt>
+    <MSVCHasBrokenARM64UniDbOpt Condition="$(_VCToolsVersion) == '14.50' or 
$(_VCToolsVersion) == '14.51' or $(_VCToolsVersion) == 
'14.52'">true</MSVCHasBrokenARM64UniDbOpt>
   </PropertyGroup>
 
   <PropertyGroup>

_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3//lists/python-checkins.python.org
Member address: [email protected]

Reply via email to