https://github.com/python/cpython/commit/390f3d310661ffdf1486d910b7ce8d1eaa9ae04b
commit: 390f3d310661ffdf1486d910b7ce8d1eaa9ae04b
branch: 3.14
author: Chris Eibl <[email protected]>
committer: hugovk <[email protected]>
date: 2026-09-26T16:24:01+03:00
summary:

[3.14] gh-153668: Temporarily disable unicodectype.c optimization on WinARM64 
due to compiler bug (GH-153669) (#158221)

Co-authored-by: Chris Eibl <[email protected]>
(cherry picked from commit 9ea05d4b8f8a007d57b2b33a4dec26408fe6836b)

# Conflicts:
#       PCbuild/pythoncore.vcxproj

* dummy edit to trigger MSI CI

* dummy edit, 2nd attempt

* remove dummy edit

---------

Co-authored-by: Steve Dower <[email protected]>

files:
M PCbuild/pyproject.props
M PCbuild/pythoncore.vcxproj

diff --git a/PCbuild/pyproject.props b/PCbuild/pyproject.props
index 53bfe5e3ea95cc..17d4773367047f 100644
--- a/PCbuild/pyproject.props
+++ b/PCbuild/pyproject.props
@@ -38,6 +38,8 @@
     <!-- See 
https://developercommunity.visualstudio.com/t/Regression-in-MSVC-1433-1434-ARM64-co/10224361
 -->
     <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>
   </PropertyGroup>
 
   <PropertyGroup>
diff --git a/PCbuild/pythoncore.vcxproj b/PCbuild/pythoncore.vcxproj
index 69d83764fbe94b..5099e44020ec50 100644
--- a/PCbuild/pythoncore.vcxproj
+++ b/PCbuild/pythoncore.vcxproj
@@ -555,7 +555,10 @@
     <ClCompile Include="..\Objects\tupleobject.c" />
     <ClCompile Include="..\Objects\typeobject.c" />
     <ClCompile Include="..\Objects\typevarobject.c" />
-    <ClCompile Include="..\Objects\unicodectype.c" />
+    <ClCompile Include="..\Objects\unicodectype.c">
+      <!-- gh-153668: Temporarily disabled due to a compiler bug -->
+      <Optimization Condition="$(Platform) == 'ARM64' and $(Configuration) == 
'Release' and $(MSVCHasBrokenARM64UniDbOpt) == 'true'">Disabled</Optimization>
+    </ClCompile>
     <ClCompile Include="..\Objects\unicodeobject.c" />
     <ClCompile Include="..\Objects\unionobject.c" />
     <ClCompile Include="..\Objects\weakrefobject.c" />

_______________________________________________
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