Commit 9f8913c4 authored by Kumar Gala's avatar Kumar Gala Committed by Carles Cufi
Browse files

toolchain: Add ARMClang to gcc related toolchain flags check

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

Signed-off-by: default avatarKumar Gala <kumar.gala@intel.com>
parent 86e1740c
Loading
Loading
Loading
Loading
+2 −1
Changes for CMakeLists.txt: 2 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -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)