ARMCC: Do not identify ARMClang as ARMCC

Since commit 8f8d056051 (ARMCC: Fix identification of ARM compiler when
it defines GNU macros, 2019-03-20, v3.14.1~10^2) we consider ARMCC
before Clang or GNU compilers.  Since armclang also defines
`__ARMCC_VERSION` it is now mistaken for ARMCC.  Extend the check for
ARMCC to also verify that `__clang__` is not defined.

Issue: #19065
This commit is contained in:
Brad King
2019-04-03 12:43:17 -04:00
parent 3c9dec0bdc
commit f28e7fc1a5

View File

@@ -1,5 +1,5 @@
# ARMCC Toolchain
set(_compiler_id_pp_test "defined(__ARMCC_VERSION)")
set(_compiler_id_pp_test "defined(__ARMCC_VERSION) && !defined(__clang__)")
set(_compiler_id_version_compute "
#if __ARMCC_VERSION >= 1000000