Skip to content

Commit bcf0bd2

Browse files
chris-eiblseehwan80
authored andcommitted
pythonGH-131296: Disable MSVC-specific optimization in sre.c when compiling with clang-cl (pythonGH-131593)
1 parent 836b7a0 commit bcf0bd2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Modules/_sre/sre.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ static unsigned int sre_toupper(unsigned int ch) {
9191

9292
/* -------------------------------------------------------------------- */
9393

94-
#if defined(_MSC_VER)
94+
#if defined(_MSC_VER) && !defined(__clang__)
9595
#pragma optimize("agtw", on) /* doesn't seem to make much difference... */
9696
#pragma warning(disable: 4710) /* who cares if functions are not inlined ;-) */
9797
/* fastest possible local call under MSVC */

0 commit comments

Comments
 (0)