From e9556e100452ed5a92fcf0e333ab75b0da29cf5b Mon Sep 17 00:00:00 2001 From: Chris Eibl <138194463+chris-eibl@users.noreply.github.com> Date: Tue, 1 Apr 2025 18:29:45 +0200 Subject: GH-131296: Disable MSVC-specific optimization in sre.c when compiling with clang-cl (GH-131593) --- Modules/_sre/sre.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Modules/_sre/sre.c b/Modules/_sre/sre.c index b0eb9d1..602d0ab 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 */ -- cgit v0.12