workaround for classic intel compiler on windows

This commit is contained in:
Axel Kohlmeyer
2021-10-08 15:11:16 -04:00
parent fb137b26bf
commit 83bc70bf05

View File

@ -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<double>(__INTEL_COMPILER) * 0.01;
buf = fmt::format("Intel Classic C++ {:.2f}.{} / {}", version, __INTEL_COMPILER_UPDATE,
__VERSION__);