Skip to content

IAR: update language specification detection

The IAR support in CMake currently uses the value of the predefined symbol IAR_SYSTEMS_ICC to determine which C and C++ language version the compiler supports. This is not future proof as this symbol denotes the internal platform generation which will not necessarily always be connected to the supported language version.

Therefore, this change involves that the IAR compiler internal symbols __cplusplus and __STDC_VERSION__ are used to determine the C++ and C language specifications, respectively.

Edited by Felipe Torrezan

Merge request reports