From 83bc70bf05b7e0c37f2583904d6617b359b0d838 Mon Sep 17 00:00:00 2001 From: Axel Kohlmeyer Date: Fri, 8 Oct 2021 15:11:16 -0400 Subject: [PATCH] workaround for classic intel compiler on windows --- src/platform.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/platform.cpp b/src/platform.cpp index 4db5042e78..b057c6415b 100644 --- a/src/platform.cpp +++ b/src/platform.cpp @@ -289,6 +289,9 @@ std::string platform::compiler_info() #elif defined(__PGI) buf = fmt::format("PGI C++ {}.{}", __PGIC__, __PGIC_MINOR__); #elif defined(__INTEL_COMPILER) +#if !defined(__VERSION__) +#define __VERSION__ __INTEL_COMPILER_BUILD_DATE +#endif double version = static_cast(__INTEL_COMPILER) * 0.01; buf = fmt::format("Intel Classic C++ {:.2f}.{} / {}", version, __INTEL_COMPILER_UPDATE, __VERSION__);