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:
parent
34c6588b6e
commit
115ecc5750
|
@ -25,7 +25,13 @@
|
|||
# define COMPILER_ID "Compaq"
|
||||
|
||||
#elif defined(__IBMC__)
|
||||
# define COMPILER_ID "VisualAge"
|
||||
# if defined(__COMPILER_VER__)
|
||||
# define COMPILER_ID "zOS"
|
||||
# elif __IBMC__ >= 800
|
||||
# define COMPILER_ID "XL"
|
||||
# else
|
||||
# define COMPILER_ID "VisualAge"
|
||||
# endif
|
||||
|
||||
#elif defined(__PGI)
|
||||
# define COMPILER_ID "PGI"
|
||||
|
|
|
@ -27,7 +27,13 @@
|
|||
# define COMPILER_ID "Compaq"
|
||||
|
||||
#elif defined(__IBMCPP__)
|
||||
# define COMPILER_ID "VisualAge"
|
||||
# if defined(__COMPILER_VER__)
|
||||
# define COMPILER_ID "zOS"
|
||||
# elif __IBMCPP__ >= 800
|
||||
# define COMPILER_ID "XL"
|
||||
# else
|
||||
# define COMPILER_ID "VisualAge"
|
||||
# endif
|
||||
|
||||
#elif defined(__PGI)
|
||||
# define COMPILER_ID "PGI"
|
||||
|
|
|
@ -8,8 +8,14 @@
|
|||
PRINT *, 'INFO:compiler[SunPro]'
|
||||
#elif defined(__GNUC__)
|
||||
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]'
|
||||
# endif
|
||||
#elif defined(__PGI)
|
||||
PRINT *, 'INFO:compiler[PGI]'
|
||||
#elif defined(_SGI_COMPILER_VERSION) || defined(_COMPILER_VERSION)
|
||||
|
|
|
@ -1 +1 @@
|
|||
SET(CMAKE_C_VERBOSE_FLAG "-V")
|
||||
include(Compiler/XL-C)
|
||||
|
|
|
@ -1 +1 @@
|
|||
SET(CMAKE_CXX_VERBOSE_FLAG "-V")
|
||||
include(Compiler/XL-CXX)
|
||||
|
|
|
@ -1,2 +1 @@
|
|||
SET(CMAKE_Fortran_VERBOSE_FLAG "-V")
|
||||
SET(CMAKE_Fortran_DEFINE_FLAG "-WF,-D")
|
||||
include(Compiler/XL-Fortran)
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
SET(CMAKE_C_VERBOSE_FLAG "-V")
|
|
@ -0,0 +1 @@
|
|||
SET(CMAKE_CXX_VERBOSE_FLAG "-V")
|
|
@ -0,0 +1,2 @@
|
|||
SET(CMAKE_Fortran_VERBOSE_FLAG "-V")
|
||||
SET(CMAKE_Fortran_DEFINE_FLAG "-WF,-D")
|
|
@ -1,2 +1 @@
|
|||
SET(CMAKE_SHARED_LIBRARY_C_FLAGS "")
|
||||
SET(CMAKE_SHARED_LIBRARY_LINK_C_FLAGS "")
|
||||
include(Platform/Linux-XL-C)
|
||||
|
|
|
@ -1,2 +1 @@
|
|||
SET(CMAKE_SHARED_LIBRARY_C_FLAGS "")
|
||||
SET(CMAKE_SHARED_LIBRARY_LINK_C_FLAGS "")
|
||||
include(Platform/Linux-XL-Fortran)
|
||||
|
|
|
@ -0,0 +1,2 @@
|
|||
SET(CMAKE_SHARED_LIBRARY_C_FLAGS "")
|
||||
SET(CMAKE_SHARED_LIBRARY_LINK_C_FLAGS "")
|
|
@ -0,0 +1,2 @@
|
|||
SET(CMAKE_SHARED_LIBRARY_C_FLAGS "")
|
||||
SET(CMAKE_SHARED_LIBRARY_LINK_C_FLAGS "")
|
Loading…
Reference in New Issue