stderr can't handle them. (see http://llvm.org/PR8150)
Patch by Frits van Bommel!
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@114638
91177308-0d34-0410-b5e6-
96231b3b80d8
// 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,