toolchain: Add ARMClang to gcc related toolchain flags check

Add ARMClang similar to LLVM to check to skip GCC specific flags

Signed-off-by: Kumar Gala <kumar.gala@intel.com>
This commit is contained in:
Kumar Gala 2023-03-16 14:58:27 +00:00 committed by Carles Cufí
parent 86e1740cfc
commit 9f8913c4e0

View file

@ -408,7 +408,8 @@ zephyr_compile_options(${COMPILER_OPT_AS_LIST})
# TODO: Include arch compiler options at this point.
if(NOT CMAKE_C_COMPILER_ID STREQUAL "Clang" AND
NOT CMAKE_C_COMPILER_ID STREQUAL "IntelLLVM")
NOT CMAKE_C_COMPILER_ID STREQUAL "IntelLLVM" AND
NOT CMAKE_C_COMPILER_ID STREQUAL "ARMClang")
# GCC assumed
zephyr_cc_option(-fno-reorder-functions)