From ffba4c74f0e4e67b51e3e3984191a5f33ff40538 Mon Sep 17 00:00:00 2001 From: Federico Busato Date: Tue, 25 Jan 2022 12:04:54 -0800 Subject: [PATCH] Fixes NVIDIA HPC compiler and Intel ICC compatibility --- 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 ee054cde..c0032b02 100644 --- a/include/fmt/core.h +++ b/include/fmt/core.h @@ -293,7 +293,7 @@ // Enable minimal optimizations for more compact code in debug mode. FMT_GCC_PRAGMA("GCC push_options") -#ifndef __OPTIMIZE__ && !FMT_NVHPC_VERSION +#if !defined(__OPTIMIZE__) && !FMT_NVHPC_VERSION FMT_GCC_PRAGMA("GCC optimize(\"Og\")") #endif