cmake: don't enable color diagnostics for xcc

The compiler option "-fdiagnostics-color=always" is not known to XCC
(which is based on really old GCC). So don't enable color
diagnostic output when building with XCC.

Signed-off-by: Daniel Leung <daniel.leung@intel.com>
This commit is contained in:
Daniel Leung 2021-06-30 13:30:16 -07:00 committed by Anas Nashif
commit 70d0077574

View file

@ -192,4 +192,6 @@ set_property(TARGET compiler-cpp PROPERTY no_threadsafe_statics "-fno-threadsafe
set_property(TARGET asm PROPERTY required "-xassembler-with-cpp") set_property(TARGET asm PROPERTY required "-xassembler-with-cpp")
# gcc flag for colourful diagnostic messages # gcc flag for colourful diagnostic messages
if (NOT COMPILER STREQUAL "xcc")
set_compiler_property(PROPERTY diagnostic -fdiagnostics-color=always) set_compiler_property(PROPERTY diagnostic -fdiagnostics-color=always)
endif()