Skip to content

Commit 983aad5

Browse files
committed
fix GCC PCH Breakage Triggered by fmt Scoped #pragma GCC optimize(0g)
1 parent 9cb8c0f commit 983aad5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

include/fmt/base.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@
226226

227227
// Enable minimal optimizations for more compact code in debug mode.
228228
FMT_PRAGMA_GCC(push_options)
229-
#if !defined(__OPTIMIZE__) && !defined(__CUDACC__) && !defined(FMT_MODULE)
229+
#if !defined(FMT_DISABLE_DEBUG_OPTIMIZE_PRAGMA) && !defined(__OPTIMIZE__) && !defined(__CUDACC__) && !defined(FMT_MODULE)
230230
FMT_PRAGMA_GCC(optimize("Og"))
231231
#endif
232232

0 commit comments

Comments
 (0)