forked from OSchip/llvm-project
Pass -fcolor-diagnostics when it is supported. This makes a difference when
using cmake+ninja, since ninja buffers the compiler output. llvm-svn: 156150
This commit is contained in:
parent
e64bd84ec7
commit
1abcf64283
|
@ -190,6 +190,10 @@ elseif( LLVM_COMPILER_IS_GCC_COMPATIBLE )
|
||||||
if( SUPPORTS_COVERED_SWITCH_DEFAULT_FLAG )
|
if( SUPPORTS_COVERED_SWITCH_DEFAULT_FLAG )
|
||||||
add_llvm_definitions( -Wcovered-switch-default )
|
add_llvm_definitions( -Wcovered-switch-default )
|
||||||
endif()
|
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)
|
endif (LLVM_ENABLE_WARNINGS)
|
||||||
if (LLVM_ENABLE_WERROR)
|
if (LLVM_ENABLE_WERROR)
|
||||||
add_llvm_definitions( -Werror )
|
add_llvm_definitions( -Werror )
|
||||||
|
|
Loading…
Reference in New Issue