]> git.ipfire.org Git - thirdparty/ccache.git/commit
Pass -fdiagnostics-color=auto to the compiler even if stderr is redirected
authorJoel Rosdahl <joel@rosdahl.net>
Wed, 19 Nov 2014 20:23:20 +0000 (21:23 +0100)
committerJoel Rosdahl <joel@rosdahl.net>
Wed, 19 Nov 2014 20:23:20 +0000 (21:23 +0100)
commitb766d4a73d1041f3206194d8caba91a90cb2a3b2
tree461eac991eb1cd3e7558d0efb41dc449c1958582
parentdcda782988eee6fccdd5f62b34d15113fe4a3aa0
Pass -fdiagnostics-color=auto to the compiler even if stderr is redirected

This fixes a problem when e.g. a configure test probes if the compiler
(wrapped via ccache) supports -fdiagnostics-color=auto. If ccache discards
the option since configure redirects stderr, then configure will
erroneously think that the compiler supports the option and the build will
fail later on (if stderr refers to a TTY).
ccache.c