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:
parent
70e1dee42c
commit
70d0077574
1 changed files with 2 additions and 0 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue