clang -fcolor-diagnostics and !isatty(stderr) #8522
Labels
bugzilla
Issues migrated from bugzilla
clang:driver
'clang' and 'clang++' user-facing binaries. Not 'clang-cl'
Extended Description
Clang's -fcolor-diagnostics command-line option doesn't enable colored diagnostics if it's of the opinion that stderr can't handle them (i.e. StandardErrHasColors() returns false).
IMHO, if this option is explicitly passed to the driver then it should respect that. (For instance, ccache users can't get colored diagnostics otherwise because ccache also caches warnings, so it has to redirect stderr)
I'm attaching a small patch that fixes this.
The text was updated successfully, but these errors were encountered: