http://llvm.org/bugs/show_bug.cgi?id=8150

           Summary: clang -fcolor-diagnostics and !isatty(stderr)
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: Driver
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected]


Created an attachment (id=5492)
 --> (http://llvm.org/bugs/attachment.cgi?id=5492)
Proposed patch

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.

-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to