From 983aad5cf16bc427e0bf9bf12436b40e06b41307 Mon Sep 17 00:00:00 2001 From: theflashwin Date: Tue, 5 May 2026 16:03:05 -0400 Subject: [PATCH] fix GCC PCH Breakage Triggered by fmt Scoped #pragma GCC optimize(0g) --- include/fmt/base.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/fmt/base.h b/include/fmt/base.h index be7a40d52e70..e296514dcf61 100644 --- a/include/fmt/base.h +++ b/include/fmt/base.h @@ -226,7 +226,7 @@ // Enable minimal optimizations for more compact code in debug mode. 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")) #endif