Workaround an ICE when using modules with gcc 14.2 and earlier

This commit is contained in:
Victor Zverovich
2025-01-12 08:47:52 -08:00
parent 8303d140a1
commit c43da35701
3 changed files with 3 additions and 3 deletions

View File

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