Add Fujitsu compiler detection

The Fujitsu C/C++ compilers are the default ones for K computer.
Detect both native and cross compilers by looking for the __FUJITSU
preprocessor definition.
This commit is contained in:
Erik Lindahl 2014-08-10 22:55:44 +02:00 committed by Brad King
parent ffc1935a73
commit 0578c283e8
2 changed files with 3 additions and 0 deletions

View File

@ -74,6 +74,7 @@ function(compiler_id_detection outvar lang)
PGI
Cray
TI
Fujitsu
)
if (lang STREQUAL C)
list(APPEND ordered_compilers

View File

@ -0,0 +1,2 @@
set(_compiler_id_pp_test "defined(__FUJITSU) || defined(__FCC_VERSION) || defined(__fcc_version)")