correctly identify new Intel compiler. mark old Intel compiler as "classic"
This commit is contained in:
@ -1317,16 +1317,15 @@ std::string Info::get_compiler_info()
|
|||||||
{
|
{
|
||||||
std::string buf;
|
std::string buf;
|
||||||
#if __INTEL_LLVM_COMPILER
|
#if __INTEL_LLVM_COMPILER
|
||||||
double version = static_cast<double>(__INTEL_COMPILER)*0.01;
|
double version = static_cast<double>(__INTEL_LLVM_COMPILER)*0.01;
|
||||||
buf = fmt::format("Intel LLVM C++ {:.2f}.{} / {}", version,
|
buf = fmt::format("Intel LLVM C++ {:.f} / {}", version, __VERSION__);
|
||||||
__INTEL_COMPILER_UPDATE, __VERSION__);
|
|
||||||
#elif __clang__
|
#elif __clang__
|
||||||
buf = fmt::format("Clang C++ {}", __VERSION__);
|
buf = fmt::format("Clang C++ {}", __VERSION__);
|
||||||
#elif __PGI
|
#elif __PGI
|
||||||
buf = fmt::format("PGI C++ {}.{}",__PGIC__,__PGIC_MINOR__);
|
buf = fmt::format("PGI C++ {}.{}",__PGIC__,__PGIC_MINOR__);
|
||||||
#elif __INTEL_COMPILER
|
#elif __INTEL_COMPILER
|
||||||
double version = static_cast<double>(__INTEL_COMPILER)*0.01;
|
double version = static_cast<double>(__INTEL_COMPILER)*0.01;
|
||||||
buf = fmt::format("Intel C++ {:.2f}.{} / {}", version,
|
buf = fmt::format("Intel Classic C++ {:.2f}.{} / {}", version,
|
||||||
__INTEL_COMPILER_UPDATE, __VERSION__);
|
__INTEL_COMPILER_UPDATE, __VERSION__);
|
||||||
#elif __GNUC__
|
#elif __GNUC__
|
||||||
buf = fmt::format("GNU C++ {}", __VERSION__);
|
buf = fmt::format("GNU C++ {}", __VERSION__);
|
||||||
|
|||||||
Reference in New Issue
Block a user