[cfe-commits] r114638 - /cfe/trunk/lib/Driver/Tools.cpp
Argyrios Kyrtzidis
akyrtzi at gmail.com
Thu Sep 23 05:56:07 PDT 2010
Author: akirtzidis
Date: Thu Sep 23 07:56:06 2010
New Revision: 114638
URL: http://llvm.org/viewvc/llvm-project?rev=114638&view=rev
Log:
If -fcolor-diagnostics is explicitly passed to the driver respect that even if the driver is of the opinion that
stderr can't handle them. (see http://llvm.org/PR8150)
Patch by Frits van Bommel!
Modified:
cfe/trunk/lib/Driver/Tools.cpp
Modified: cfe/trunk/lib/Driver/Tools.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Driver/Tools.cpp?rev=114638&r1=114637&r2=114638&view=diff
==============================================================================
--- cfe/trunk/lib/Driver/Tools.cpp (original)
+++ cfe/trunk/lib/Driver/Tools.cpp Thu Sep 23 07:56:06 2010
@@ -1414,8 +1414,8 @@
// Color diagnostics are the default, unless the terminal doesn't support
// them.
if (Args.hasFlag(options::OPT_fcolor_diagnostics,
- options::OPT_fno_color_diagnostics) &&
- llvm::sys::Process::StandardErrHasColors())
+ options::OPT_fno_color_diagnostics,
+ llvm::sys::Process::StandardErrHasColors()))
CmdArgs.push_back("-fcolor-diagnostics");
if (!Args.hasFlag(options::OPT_fshow_source_location,
More information about the cfe-commits
mailing list