use __INTEL_LLVM_COMPILER macro to detect new intel compilers as intel, not clang
This commit is contained in:
@ -1316,7 +1316,11 @@ std::string Info::get_os_info()
|
||||
std::string Info::get_compiler_info()
|
||||
{
|
||||
std::string buf;
|
||||
#if __clang__
|
||||
#if __INTEL_LLVM_COMPILER
|
||||
double version = static_cast<double>(__INTEL_COMPILER)*0.01;
|
||||
buf = fmt::format("Intel LLVM C++ {:.2f}.{} / {}", version,
|
||||
__INTEL_COMPILER_UPDATE, __VERSION__);
|
||||
#elif __clang__
|
||||
buf = fmt::format("Clang C++ {}", __VERSION__);
|
||||
#elif __PGI
|
||||
buf = fmt::format("PGI C++ {}.{}",__PGIC__,__PGIC_MINOR__);
|
||||
|
||||
Reference in New Issue
Block a user