mirror of
https://github.com/RPCS3/llvm.git
synced 2024-11-26 13:10:42 +00:00
Pass -fcolor-diagnostics when it is supported. This makes a difference when
using cmake+ninja, since ninja buffers the compiler output. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@156150 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
e3ee49fb27
commit
18efed7adc
@ -190,6 +190,10 @@ elseif( LLVM_COMPILER_IS_GCC_COMPATIBLE )
|
||||
if( SUPPORTS_COVERED_SWITCH_DEFAULT_FLAG )
|
||||
add_llvm_definitions( -Wcovered-switch-default )
|
||||
endif()
|
||||
check_cxx_compiler_flag("-Werror -fcolor-diagnostics" SUPPORTS_FCOLOR_DIAGNOSTICS_FLAG)
|
||||
if( SUPPORTS_FCOLOR_DIAGNOSTICS_FLAG )
|
||||
add_llvm_definitions( -fcolor-diagnostics )
|
||||
endif()
|
||||
endif (LLVM_ENABLE_WARNINGS)
|
||||
if (LLVM_ENABLE_WERROR)
|
||||
add_llvm_definitions( -Werror )
|
||||
|
Loading…
Reference in New Issue
Block a user