diff --git a/cmake/compiler/gcc/compiler_flags.cmake b/cmake/compiler/gcc/compiler_flags.cmake index 4ca64522085..4e8883992de 100644 --- a/cmake/compiler/gcc/compiler_flags.cmake +++ b/cmake/compiler/gcc/compiler_flags.cmake @@ -192,4 +192,6 @@ 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()