From a553521d6d8a7b66fd5b62643600d939df91d53e Mon Sep 17 00:00:00 2001 From: Vladislav Shchapov Date: Thu, 25 Aug 2022 15:54:08 +0500 Subject: [PATCH] Disable "GCC optimize" pragma for LCC Signed-off-by: Vladislav Shchapov --- include/fmt/core.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/fmt/core.h b/include/fmt/core.h index f6a37af9..e3a1ee33 100644 --- a/include/fmt/core.h +++ b/include/fmt/core.h @@ -286,7 +286,7 @@ // Enable minimal optimizations for more compact code in debug mode. FMT_GCC_PRAGMA("GCC push_options") -#if !defined(__OPTIMIZE__) && !defined(__NVCOMPILER) +#if !defined(__OPTIMIZE__) && !defined(__NVCOMPILER) && !defined(__LCC__) FMT_GCC_PRAGMA("GCC optimize(\"Og\")") #endif