From: Chris Eibl <138194463+chris-eibl@users.noreply.github.com> Date: Tue, 1 Apr 2025 16:29:45 +0000 (+0200) Subject: GH-131296: Disable MSVC-specific optimization in sre.c when compiling with clang... X-Git-Tag: v3.14.0a7~109 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e9556e100452ed5a92fcf0e333ab75b0da29cf5b;p=thirdparty%2FPython%2Fcpython.git GH-131296: Disable MSVC-specific optimization in sre.c when compiling with clang-cl (GH-131593) --- diff --git a/Modules/_sre/sre.c b/Modules/_sre/sre.c index b0eb9d131c64..602d0ab8588f 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 */