mirror of
https://github.com/intel/llvm.git
synced 2026-01-20 19:07:53 +08:00
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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user