From 7a16567e2a3686e2c0e4a7269e4ccec0b67d51f0 Mon Sep 17 00:00:00 2001 From: Axel Kohlmeyer Date: Sat, 11 Apr 2020 18:34:37 -0400 Subject: [PATCH] better version info output with intel compilers --- src/info.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/info.cpp b/src/info.cpp index d6b5c508aa..c02a0499fc 100644 --- a/src/info.cpp +++ b/src/info.cpp @@ -1203,7 +1203,8 @@ char *Info::get_compiler_info() #if __clang__ snprintf(buf,_INFOBUF_SIZE,"Clang C++ %s", __VERSION__); #elif __INTEL_COMPILER - snprintf(buf,_INFOBUF_SIZE,"Intel C++ %s", __VERSION__); + double version = static_cast(__INTEL_COMPILER)*0.01; + snprintf(buf,_INFOBUF_SIZE,"Intel C++ %5.2f.%d / %s", version, __INTEL_COMPILER_UPDATE, __VERSION__); #elif __GNUC__ snprintf(buf,_INFOBUF_SIZE,"GNU C++ %s", __VERSION__); #else