Block optimize pragma on EDG (#4980)
EDG over GCC likes to pretend to be GCC in a lot of macros,
but not all. It does not define `__OPTIMIZE__` ever.
So we would erroneously emit pragma optimize `Og`
even in optimized builds.
diff --git a/include/fmt/core.h b/include/fmt/core.h
index 1c9a496..5748381 100644
--- a/include/fmt/core.h
+++ b/include/fmt/core.h
@@ -236,7 +236,7 @@
// Enable minimal optimizations for more compact code in debug mode.
FMT_PRAGMA_GCC(push_options)
#if FMT_USE_OPTIMIZE_PRAGMA && !defined(__OPTIMIZE__) && \
- !defined(__CUDACC__) && !defined(FMT_MODULE)
+ !defined(__CUDACC__) && !defined(__EDG__) && !defined(FMT_MODULE)
FMT_PRAGMA_GCC(optimize("Og"))
#endif