8000 GH-131296: Disable MSVC-specific optimization in sre.c when compiling… · python/cpython@e9556e1 · GitHub
[go: up one dir, main page]

Skip to content

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit e9556e1

Browse files
authored
GH-131296: Disable MSVC-specific optimization in sre.c when compiling with clang-cl (GH-131593)
1 parent edbf7fb commit e9556e1

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)
0