Teach compiler id about VisualAge -> XL rebranding

IBM rebranded its VisualAge compiler to XL starting at version 8.0.  We
use the compiler id "XL" for newer versions and "VisualAge" for older
versions.  We now also recognize the "z/OS" compiler, which is distinct
from XL.
This commit is contained in:
Brad King 2009-08-07 10:13:07 -04:00
parent 34c6588b6e
commit 115ecc5750
13 changed files with 34 additions and 11 deletions

View File

@ -25,7 +25,13 @@
# define COMPILER_ID "Compaq" # define COMPILER_ID "Compaq"
#elif defined(__IBMC__) #elif defined(__IBMC__)
# if defined(__COMPILER_VER__)
# define COMPILER_ID "zOS"
# elif __IBMC__ >= 800
# define COMPILER_ID "XL"
# else
# define COMPILER_ID "VisualAge" # define COMPILER_ID "VisualAge"
# endif
#elif defined(__PGI) #elif defined(__PGI)
# define COMPILER_ID "PGI" # define COMPILER_ID "PGI"

View File

@ -27,7 +27,13 @@
# define COMPILER_ID "Compaq" # define COMPILER_ID "Compaq"
#elif defined(__IBMCPP__) #elif defined(__IBMCPP__)
# if defined(__COMPILER_VER__)
# define COMPILER_ID "zOS"
# elif __IBMCPP__ >= 800
# define COMPILER_ID "XL"
# else
# define COMPILER_ID "VisualAge" # define COMPILER_ID "VisualAge"
# endif
#elif defined(__PGI) #elif defined(__PGI)
# define COMPILER_ID "PGI" # define COMPILER_ID "PGI"

View File

@ -8,8 +8,14 @@
PRINT *, 'INFO:compiler[SunPro]' PRINT *, 'INFO:compiler[SunPro]'
#elif defined(__GNUC__) #elif defined(__GNUC__)
PRINT *, 'INFO:compiler[GNU]' PRINT *, 'INFO:compiler[GNU]'
#elif defined(__IBM__) || defined(__IBMC__) #elif defined(__IBMC__)
# if defined(__COMPILER_VER__)
PRINT *, 'INFO:compiler[zOS]'
# elif __IBMC__ >= 800
PRINT *, 'INFO:compiler[XL]'
# else
PRINT *, 'INFO:compiler[VisualAge]' PRINT *, 'INFO:compiler[VisualAge]'
# endif
#elif defined(__PGI) #elif defined(__PGI)
PRINT *, 'INFO:compiler[PGI]' PRINT *, 'INFO:compiler[PGI]'
#elif defined(_SGI_COMPILER_VERSION) || defined(_COMPILER_VERSION) #elif defined(_SGI_COMPILER_VERSION) || defined(_COMPILER_VERSION)

View File

@ -1 +1 @@
SET(CMAKE_C_VERBOSE_FLAG "-V") include(Compiler/XL-C)

View File

@ -1 +1 @@
SET(CMAKE_CXX_VERBOSE_FLAG "-V") include(Compiler/XL-CXX)

View File

@ -1,2 +1 @@
SET(CMAKE_Fortran_VERBOSE_FLAG "-V") include(Compiler/XL-Fortran)
SET(CMAKE_Fortran_DEFINE_FLAG "-WF,-D")

View File

@ -0,0 +1 @@
SET(CMAKE_C_VERBOSE_FLAG "-V")

View File

@ -0,0 +1 @@
SET(CMAKE_CXX_VERBOSE_FLAG "-V")

View File

@ -0,0 +1,2 @@
SET(CMAKE_Fortran_VERBOSE_FLAG "-V")
SET(CMAKE_Fortran_DEFINE_FLAG "-WF,-D")

View File

@ -1,2 +1 @@
SET(CMAKE_SHARED_LIBRARY_C_FLAGS "") include(Platform/Linux-XL-C)
SET(CMAKE_SHARED_LIBRARY_LINK_C_FLAGS "")

View File

@ -1,2 +1 @@
SET(CMAKE_SHARED_LIBRARY_C_FLAGS "") include(Platform/Linux-XL-Fortran)
SET(CMAKE_SHARED_LIBRARY_LINK_C_FLAGS "")

View File

@ -0,0 +1,2 @@
SET(CMAKE_SHARED_LIBRARY_C_FLAGS "")
SET(CMAKE_SHARED_LIBRARY_LINK_C_FLAGS "")

View File

@ -0,0 +1,2 @@
SET(CMAKE_SHARED_LIBRARY_C_FLAGS "")
SET(CMAKE_SHARED_LIBRARY_LINK_C_FLAGS "")