From 35c71ff536321475f688fe50424e3eb070868a94 Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Sat, 27 Mar 2021 11:35:01 -0700 Subject: [PATCH] Only use -Og with optimizations disabled --- include/fmt/core.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/fmt/core.h b/include/fmt/core.h index 5965ce28..db7649b2 100644 --- a/include/fmt/core.h +++ b/include/fmt/core.h @@ -254,7 +254,9 @@ // Enable minimal optimizations for more compact code in debug mode. FMT_GCC_PRAGMA("GCC push_options") +#ifndef __OPTIMIZE__ FMT_GCC_PRAGMA("GCC optimize(\"Og\")") +#endif FMT_BEGIN_NAMESPACE