|
|
@@ -10,6 +10,12 @@
|
|
|
|
|
|
#elif defined(__INTEL_COMPILER) || defined(__ICC)
|
|
|
# define COMPILER_ID "Intel"
|
|
|
+# define COMPILER_VERSION_MAJOR DEC(__INTEL_COMPILER/100)
|
|
|
+# define COMPILER_VERSION_MINOR DEC(__INTEL_COMPILER/10 % 10)
|
|
|
+# define COMPILER_VERSION_PATCH DEC(__INTEL_COMPILER % 10)
|
|
|
+# if defined(__INTEL_COMPILER_BUILD_DATE)
|
|
|
+# define COMPILER_VERSION_TWEAK DEC(__INTEL_COMPILER_BUILD_DATE)
|
|
|
+# endif
|
|
|
|
|
|
#elif defined(__clang__)
|
|
|
# define COMPILER_ID "Clang"
|