diff --git a/cmake/compiler/gcc/compiler_flags.cmake b/cmake/compiler/gcc/compiler_flags.cmake index 204df61d01a..15070fe4e93 100644 --- a/cmake/compiler/gcc/compiler_flags.cmake +++ b/cmake/compiler/gcc/compiler_flags.cmake @@ -232,9 +232,7 @@ set_property(TARGET compiler-cpp PROPERTY no_threadsafe_statics "-fno-threadsafe set_property(TARGET asm PROPERTY required "-xassembler-with-cpp") # gcc flag for colourful diagnostic messages -if (NOT COMPILER STREQUAL "xcc") -set_compiler_property(PROPERTY diagnostic -fdiagnostics-color=always) -endif() +check_set_compiler_property(PROPERTY diagnostic -fdiagnostics-color=always) # Compiler flag for disabling pointer arithmetic warnings set_compiler_property(PROPERTY warning_no_pointer_arithmetic "-Wno-pointer-arith")