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!

llvm-svn: 114638
This commit is contained in:
Argyrios Kyrtzidis 2010-09-23 12:56:06 +00:00
parent 719a46bbf1
commit 4f92016ed3
1 changed files with 2 additions and 2 deletions

View File

@ -1414,8 +1414,8 @@ void Clang::ConstructJob(Compilation &C, const JobAction &JA,
// 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,