Re: Support for color diagnostics

Ryan Hill <[email protected]>
Newsgroups gmane.comp.compilers.ccache
Organization Gentoo
Message-ID <[email protected]>
On Fri, 29 Nov 2013 12:39:25 +0100
Lubos Lunak <[email protected]> wrote:

>  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 apparently requires also $GCC_COLORS or an
> explicit option.
> 
>  The patch detects if the compiler would use colors if used without ccache
> and explicitly forces an option to achieve this. Note that I do not have GCC
> 4.8 here, so I tested with Clang's alias and the GCC_COLORS support is done
> based on documentation.

-fdiagnostics-color and GCC_COLORS were added in 4.9.  Maybe some distros have
backported it?

$ gcc-4.8.2 -fdiagnostics-color -c main.c
gcc-4.8.2: error: unrecognized command line option '-fdiagnostics-color'


-- 
Ryan Hill                        psn: dirtyepic_sk
   gcc-porting/toolchain/wxwidgets @ gentoo.org

47C3 6D62 4864 0E49 8E9E  7F92 ED38 BD49 957A 8463

_______________________________________________
ccache mailing list
[email protected]
https://lists.samba.org/mailman/listinfo/ccache
signature.asc (application/pgp-signature, 490 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.22 (GNU/Linux)

iQEcBAEBCgAGBQJS+u9NAAoJEO04vUmVeoRjBRgH/1AFdaTxMhOMmr9Tal5HmHLz
AKMz+Sl5mm3fOOGSrJfXLNlSKXgl/bFK3W265Msa7oBGFp3ZTUWyvHGy7+mub8CQ
F0Ur39Hn96CTwUWxTCJKISuh9x0IkL7pwIKxz6NNfB5ahBpzA3im4unchxojyqy8
pV77ppd2Fp6xpUF9QAuBxvbkU2eNiT1WDAyrZK0YDm/eKa9hINJ4mBr3tPi/haOt
yjvubVHE0qJD7EtXBJSc2w641BdpBt2pI5IVZlAPKSy2GTWF65odhXFn/+2xtFB5
GuiM+TDw9nb2A8HCPcm7TrQIZt3lKiWcb7v8E6Tgo9yK/7kn26HP+oGpeg9zUKE=
=m0kE
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.