Skip to content

Commit

Permalink
Merge pull request #2794 from ye-luo/update-multi
Browse files Browse the repository at this point in the history
More traps for bad combination of Intel and libstdc++
  • Loading branch information
ye-luo authored Nov 17, 2020
2 parents 60a7f2a + 66eed1f commit 12b90fb
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions CMake/Testlibstdc++.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,13 @@ int main(int argc, char **argv)
// It is kept here as an exmple for the future.
#if ( defined(__INTEL_COMPILER) && ( _GLIBCXX_RELEASE < 7 ) )
#error too old libstdc++ from GNU for Intel compilers, use GNU version >= 7
#endif
// libstdc++ from GCC 8 is bad for Intel 19 in both C++14 and C++17
#if ( ( __INTEL_COMPILER == 1900 ) && ( _GLIBCXX_RELEASE > 7 ) )
#error too new libstdc++ from GNU for Intel 19, use GNU version <= 7
#endif
#if ( ( __INTEL_COMPILER == 1910 ) && ( _GLIBCXX_RELEASE > 9 ) )
#error too new libstdc++ from GNU for Intel 20, use GNU version <= 9
#endif
return 0;
}
Expand Down

0 comments on commit 12b90fb

Please sign in to comment.