Skip to content

ARMCC: Fix identification of ARM compiler when it defines GNU macros

Brad King requested to merge brad.king/cmake:armcc-compiler-id into master

According to ARMCC 5.06 documentation the compiler may define __GNUC__ in addition to __ARMCC_VERSION. Re-order our preprocessor checks to consider the ARM-specific macro first so that the ARM compiler is not mistaken for a GNU compiler.

Fixes: #19065 (closed)

Merge request reports