https://github.com/python/cpython/commit/e9556e100452ed5a92fcf0e333ab75b0da29cf5b
commit: e9556e100452ed5a92fcf0e333ab75b0da29cf5b
branch: main
author: Chris Eibl <138194463+chris-e...@users.noreply.github.com>
committer: zooba <steve.do...@microsoft.com>
date: 2025-04-01T17:29:45+01:00
summary:

GH-131296: Disable MSVC-specific optimization in sre.c when compiling with 
clang-cl (GH-131593)

files:
M Modules/_sre/sre.c

diff --git a/Modules/_sre/sre.c b/Modules/_sre/sre.c
index b0eb9d131c6469..602d0ab8588f62 100644
--- a/Modules/_sre/sre.c
+++ b/Modules/_sre/sre.c
@@ -91,7 +91,7 @@ static unsigned int sre_toupper(unsigned int ch) {
 
 /* -------------------------------------------------------------------- */
 
-#if defined(_MSC_VER)
+#if defined(_MSC_VER) && !defined(__clang__)
 #pragma optimize("agtw", on) /* doesn't seem to make much difference... */
 #pragma warning(disable: 4710) /* who cares if functions are not inlined ;-) */
 /* fastest possible local call under MSVC */

_______________________________________________
Python-checkins mailing list -- python-checkins@python.org
To unsubscribe send an email to python-checkins-le...@python.org
https://mail.python.org/mailman3/lists/python-checkins.python.org/
Member address: arch...@mail-archive.com

Reply via email to