Commit 4831c47b authored by Kumar Gala's avatar Kumar Gala Committed by Kumar Gala
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>
(cherry picked from commit 9f8913c4)
parent eb637d10
Loading
Loading
Loading
Loading
+2 −1
Changes for CMakeLists.txt: 2 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -392,7 +392,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)