You are not logged in.

#1 2015-07-08 14:40:10

gajjanag
Member
From: Cambridge, MA
Registered: 2015-05-10
Posts: 17
Website

[solved-ish] ccache with GCC 5.1 colorized output

I have started using ccache with gcc 5.1 (vanilla package in Arch).
gcc by itself generates color output by default now.
However, when I do a 'ccache gcc' instead of 'gcc', I no longer get color output.

The wiki mentions how to get color output while using the colorgcc wrapper,
but has no information on what to do with regular GCC, which now outputs color messages.

Any ideas, apart from installing colorgcc?

Last edited by gajjanag (2015-08-21 21:42:52)


"Behind every theorem lies an inequality" - A N Kolmogorov

Offline

#2 2015-07-08 19:02:48

Saint0fCloud
Member
Registered: 2009-03-31
Posts: 137

Re: [solved-ish] ccache with GCC 5.1 colorized output

I don't have a machine in front of me to test, but what if you pass '-fdiagnostics-color' explicitly? The equivalent is used to fix color output for clang + ccache

Offline

#3 2015-07-08 19:15:42

gajjanag
Member
From: Cambridge, MA
Registered: 2015-05-10
Posts: 17
Website

Re: [solved-ish] ccache with GCC 5.1 colorized output

That works, thanks.

I wish this could be handled correctly without this hack.
After all, why can't gcc convey its default options to ccache?


"Behind every theorem lies an inequality" - A N Kolmogorov

Offline

Board footer

Powered by FluxBB