mirror of
https://github.com/Kitware/CMake.git
synced 2026-08-04 14:50:23 +00:00
Detect Cray compiler version with its id
Decode decimal digits from _RELEASE _RELEASE_MINOR to compute version number components. See documentation at: http://docs.cray.com/books/S-2179-52/html-S-2179-52/zfixed5fvzxnxo.html http://sourceforge.net/p/predef/wiki/Compilers/#cray-c
This commit is contained in:
@@ -105,6 +105,8 @@
|
|||||||
|
|
||||||
#elif defined(_CRAYC)
|
#elif defined(_CRAYC)
|
||||||
# define COMPILER_ID "Cray"
|
# define COMPILER_ID "Cray"
|
||||||
|
# define COMPILER_VERSION_MAJOR DEC(_RELEASE)
|
||||||
|
# define COMPILER_VERSION_MINOR DEC(_RELEASE_MINOR)
|
||||||
|
|
||||||
#elif defined(__TI_COMPILER_VERSION__)
|
#elif defined(__TI_COMPILER_VERSION__)
|
||||||
# define COMPILER_ID "TI_DSP"
|
# define COMPILER_ID "TI_DSP"
|
||||||
|
|||||||
@@ -110,6 +110,8 @@
|
|||||||
|
|
||||||
#elif defined(_CRAYC)
|
#elif defined(_CRAYC)
|
||||||
# define COMPILER_ID "Cray"
|
# define COMPILER_ID "Cray"
|
||||||
|
# define COMPILER_VERSION_MAJOR DEC(_RELEASE)
|
||||||
|
# define COMPILER_VERSION_MINOR DEC(_RELEASE_MINOR)
|
||||||
|
|
||||||
#elif defined(__TI_COMPILER_VERSION__)
|
#elif defined(__TI_COMPILER_VERSION__)
|
||||||
# define COMPILER_ID "TI_DSP"
|
# define COMPILER_ID "TI_DSP"
|
||||||
|
|||||||
Reference in New Issue
Block a user