Cray: Implement Fortran compiler version detection (#15845)
We already recognize the Cray Fortran compiler id. Extract the version number using the same predefined macros we already use for Cray C and C++ compilers.
This commit is contained in:
parent
3187de20fd
commit
09f754f040
|
@ -45,6 +45,8 @@
|
||||||
# define COMPILER_VERSION_PATCH HEX(__SUNPRO_F90 & 0xF)
|
# define COMPILER_VERSION_PATCH HEX(__SUNPRO_F90 & 0xF)
|
||||||
#elif defined(_CRAYFTN)
|
#elif defined(_CRAYFTN)
|
||||||
PRINT *, 'INFO:compiler[Cray]'
|
PRINT *, 'INFO:compiler[Cray]'
|
||||||
|
# define COMPILER_VERSION_MAJOR DEC(_RELEASE_MAJOR)
|
||||||
|
# define COMPILER_VERSION_MINOR DEC(_RELEASE_MINOR)
|
||||||
#elif defined(__G95__)
|
#elif defined(__G95__)
|
||||||
PRINT *, 'INFO:compiler[G95]'
|
PRINT *, 'INFO:compiler[G95]'
|
||||||
# define COMPILER_VERSION_MAJOR DEC(__G95__)
|
# define COMPILER_VERSION_MAJOR DEC(__G95__)
|
||||||
|
|
Loading…
Reference in New Issue