[ccache] Support for color diagnostics

2013-11-29 Thread Lubos Lunak
Hello, the attached patch adds ccache support for compiler color diagnostics (also reported by somebody as #10075). Clang automatically uses colors for output automatically if used in terminal. Ccache's redirecting to a file disables this. GCC 4.8 has got a similar support, except that it

Re: [ccache] Support for color diagnostics

2013-11-29 Thread Lubos Lunak
On Friday 29 of November 2013, Lubos Lunak wrote: > Hello, > > the attached patch adds ccache support for compiler color diagnostics > (also reported by somebody as #10075). ... > Caveats: I forgot one: - The function color_output_possible() may look simplistic, but as far as I can tell it wo

[ccache] Ccache's use of preprocessed source

2013-11-29 Thread Lubos Lunak
Hello, in short, I'd like to ask about the feasibility of CCACHE_CPP2=1 becoming the default and the possibility of preventing ccache from running cpp at all. From the "cache hides compiler warnings about comments" thread: > By the way, a workaround is to set CCACHE_CPP2 when compiling. I

Re: [ccache] Support for color diagnostics

2013-11-29 Thread Loïc Yhuel
Le 29/11/2013 14:08, Lubos Lunak a écrit : On Friday 29 of November 2013, Lubos Lunak wrote: Hello, the attached patch adds ccache support for compiler color diagnostics (also reported by somebody as #10075). ... Caveats: I forgot one: - The function color_output_possible() may look s