[ccache] Support for color diagnostics

Lubos Lunak l.lunak at centrum.cz
Tue Feb 18 04:09:45 MST 2014


On Tuesday 18 of February 2014, interfaSys Sàrl wrote:
> Hello,
>
> I've just tested the patch with a patched gcc48 with -fdiagnostics-color
> support on FreeBSD 9 and it works with one exception.
>
> GCC's documentations says:
> "‘auto’ means to use color only when the standard error is a terminal"
>
> So, if my understanding is correct, this means that, when using
> -fdiagnostics-color=auto , I should be seeing colours when using the
> terminal and indeed, that's the normal behaviour when ccache falls back to
> the compiler (I see colours).
>
> With that patch, I don't see the colours in auto mode. It only works in
> always mode.

 I see. How about this patch?

-- 
 Lubos Lunak
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-support-compiler-color-diagnostics-if-possible.patch
Type: text/x-diff
Size: 4759 bytes
Desc: not available
URL: <http://lists.samba.org/pipermail/ccache/attachments/20140218/2190a009/attachment.patch>


More information about the ccache mailing list