Detect PGI compiler version with its id
Decode decimal digits from __PGIC__ __PGIC_MINOR__ __PGIC_PATCHLEVEL__ to compute version number components.
This commit is contained in:
parent
6dae6660fc
commit
b8cfa656ce
|
@ -51,6 +51,11 @@
|
||||||
|
|
||||||
#elif defined(__PGI)
|
#elif defined(__PGI)
|
||||||
# define COMPILER_ID "PGI"
|
# define COMPILER_ID "PGI"
|
||||||
|
# define COMPILER_VERSION_MAJOR DEC(__PGIC__)
|
||||||
|
# define COMPILER_VERSION_MINOR DEC(__PGIC_MINOR__)
|
||||||
|
# if defined(__PGIC_PATCHLEVEL__)
|
||||||
|
# define COMPILER_VERSION_PATCH DEC(__PGIC_PATCHLEVEL__)
|
||||||
|
# endif
|
||||||
|
|
||||||
#elif defined(__PATHSCALE__)
|
#elif defined(__PATHSCALE__)
|
||||||
# define COMPILER_ID "PathScale"
|
# define COMPILER_ID "PathScale"
|
||||||
|
|
|
@ -53,6 +53,11 @@
|
||||||
|
|
||||||
#elif defined(__PGI)
|
#elif defined(__PGI)
|
||||||
# define COMPILER_ID "PGI"
|
# define COMPILER_ID "PGI"
|
||||||
|
# define COMPILER_VERSION_MAJOR DEC(__PGIC__)
|
||||||
|
# define COMPILER_VERSION_MINOR DEC(__PGIC_MINOR__)
|
||||||
|
# if defined(__PGIC_PATCHLEVEL__)
|
||||||
|
# define COMPILER_VERSION_PATCH DEC(__PGIC_PATCHLEVEL__)
|
||||||
|
# endif
|
||||||
|
|
||||||
#elif defined(__PATHSCALE__)
|
#elif defined(__PATHSCALE__)
|
||||||
# define COMPILER_ID "PathScale"
|
# define COMPILER_ID "PathScale"
|
||||||
|
|
Loading…
Reference in New Issue