mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-01-07 16:42:34 +00: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:
parent
719a46bbf1
commit
4f92016ed3
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user