better version info output with intel compilers

This commit is contained in:
Axel Kohlmeyer
2020-04-11 18:34:37 -04:00
parent 0fa6472c51
commit 7a16567e2a

View File

@ -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<double>(__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