fix GCC PCH Breakage Triggered by fmt Scoped #pragma GCC optimize(0g)

This commit is contained in:
theflashwin 2026-05-05 16:03:05 -04:00
parent 9cb8c0f92b
commit 983aad5cf1

View File

@ -226,7 +226,7 @@
// Enable minimal optimizations for more compact code in debug mode. // Enable minimal optimizations for more compact code in debug mode.
FMT_PRAGMA_GCC(push_options) FMT_PRAGMA_GCC(push_options)
#if !defined(__OPTIMIZE__) && !defined(__CUDACC__) && !defined(FMT_MODULE) #if !defined(FMT_DISABLE_DEBUG_OPTIMIZE_PRAGMA) && !defined(__OPTIMIZE__) && !defined(__CUDACC__) && !defined(FMT_MODULE)
FMT_PRAGMA_GCC(optimize("Og")) FMT_PRAGMA_GCC(optimize("Og"))
#endif #endif