GH-131296: Disable MSVC-specific optimization in sre.c when compiling with clang-cl (GH-131593)

This commit is contained in:
Chris Eibl 2025-04-01 18:29:45 +02:00 committed by GitHub
parent edbf7fb129
commit e9556e1004
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View 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 */