Add IAR to the CMakeDetectC(XX)CompilerID.c(pp).in

With the AVR IAR compiler this can't be found, but it works e.g. for the
ARM AVR compiler.

Alex
This commit is contained in:
Alex Neundorf 2012-01-04 21:36:49 +01:00 committed by Brad King
parent d33f40638d
commit d118b8b389
2 changed files with 8 additions and 4 deletions

View File

@ -160,10 +160,9 @@
# define COMPILER_ID "ADSP" # define COMPILER_ID "ADSP"
/* IAR Systems compiler for embedded systems. /* IAR Systems compiler for embedded systems.
http://www.iar.com http://www.iar.com */
Not supported yet by CMake #elif defined(__IAR_SYSTEMS_ICC__ ) || defined(__IAR_SYSTEMS_ICC)
#elif defined(__IAR_SYSTEMS_ICC__) # define COMPILER_ID "IAR"
# define COMPILER_ID "IAR" */
/* sdcc, the small devices C compiler for embedded systems, /* sdcc, the small devices C compiler for embedded systems,
http://sdcc.sourceforge.net */ http://sdcc.sourceforge.net */

View File

@ -161,6 +161,11 @@
#elif defined(__ADSPBLACKFIN__) || defined(__ADSPTS__) || defined(__ADSP21000__) #elif defined(__ADSPBLACKFIN__) || defined(__ADSPTS__) || defined(__ADSP21000__)
# define COMPILER_ID "ADSP" # define COMPILER_ID "ADSP"
/* IAR Systems compiler for embedded systems.
http://www.iar.com */
#elif defined(__IAR_SYSTEMS_ICC__ ) || defined(__IAR_SYSTEMS_ICC)
# define COMPILER_ID "IAR"
#elif defined(_SGI_COMPILER_VERSION) || defined(_COMPILER_VERSION) #elif defined(_SGI_COMPILER_VERSION) || defined(_COMPILER_VERSION)
# define COMPILER_ID "MIPSpro" # define COMPILER_ID "MIPSpro"
# if defined(_SGI_COMPILER_VERSION) # if defined(_SGI_COMPILER_VERSION)