From d299c2d217dc95e82e9895d6882098440fa1a113 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 1fc0292e..65115bfb 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