]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
GH-131296: Disable MSVC-specific optimization in sre.c when compiling with clang...
authorChris Eibl <138194463+chris-eibl@users.noreply.github.com>
Tue, 1 Apr 2025 16:29:45 +0000 (18:29 +0200)
committerGitHub <noreply@github.com>
Tue, 1 Apr 2025 16:29:45 +0000 (17:29 +0100)
Modules/_sre/sre.c

index b0eb9d131c64698997b985a9ac657c69b61affee..602d0ab8588f62fd27081587f2c9ace2990c2d36 100644 (file)
@@ -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 */