From: Rafael Espindola Date: Tue, 8 May 2012 18:11:06 +0000 (+0000) Subject: Adding -fcolor-diagnostics is causing problem to users that parse the build X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=869d817aa7215680ceb2ff976ef4f6df9ff0426b;p=oota-llvm.git Adding -fcolor-diagnostics is causing problem to users that parse the build output. Peter Collingbourne also reports that it is showing up in $(llvm-config --cflags). Revert this for now since I don't know enough cmake to fix it properly. This reverts commit 18efed7adc79c1970f307bb5b015d199012ba872. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@156392 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/cmake/modules/HandleLLVMOptions.cmake b/cmake/modules/HandleLLVMOptions.cmake index da31cc4c8dd..d10e59a0972 100644 --- a/cmake/modules/HandleLLVMOptions.cmake +++ b/cmake/modules/HandleLLVMOptions.cmake @@ -190,10 +190,6 @@ 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 )