From 88c6e5cb31fdb0d9ee0a4f8afaa5d2279e334694 Mon Sep 17 00:00:00 2001 From: Axel Kohlmeyer Date: Mon, 15 Mar 2021 00:32:31 -0400 Subject: [PATCH] correctly identify new Intel compiler. mark old Intel compiler as "classic" --- src/info.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/info.cpp b/src/info.cpp index 9f6a977468..e169e58cdc 100644 --- a/src/info.cpp +++ b/src/info.cpp @@ -1317,16 +1317,15 @@ std::string Info::get_compiler_info() { std::string buf; #if __INTEL_LLVM_COMPILER - double version = static_cast(__INTEL_COMPILER)*0.01; - buf = fmt::format("Intel LLVM C++ {:.2f}.{} / {}", version, - __INTEL_COMPILER_UPDATE, __VERSION__); + double version = static_cast(__INTEL_LLVM_COMPILER)*0.01; + buf = fmt::format("Intel LLVM C++ {:.f} / {}", version, __VERSION__); #elif __clang__ buf = fmt::format("Clang C++ {}", __VERSION__); #elif __PGI buf = fmt::format("PGI C++ {}.{}",__PGIC__,__PGIC_MINOR__); #elif __INTEL_COMPILER double version = static_cast(__INTEL_COMPILER)*0.01; - buf = fmt::format("Intel C++ {:.2f}.{} / {}", version, + buf = fmt::format("Intel Classic C++ {:.2f}.{} / {}", version, __INTEL_COMPILER_UPDATE, __VERSION__); #elif __GNUC__ buf = fmt::format("GNU C++ {}", __VERSION__);