]> git.ipfire.org Git - thirdparty/ccache.git/commit
Treat unreadable conf file like missing instead of a fatal error
authorJoel Rosdahl <joel@rosdahl.net>
Tue, 6 Feb 2018 20:49:55 +0000 (21:49 +0100)
committerJoel Rosdahl <joel@rosdahl.net>
Tue, 6 Feb 2018 21:02:54 +0000 (22:02 +0100)
commita5b2c09dc01aff31ca64a81f3615ceaf7d2c159a
treee7d531de32cce9387416466b0ff036ba8a034d46
parent67fdd3b53c19476d33a9f74acdf02046293437ab
Treat unreadable conf file like missing instead of a fatal error

This reverts 0b18af47 and implements a better solution.

The major reason is to keep ccache transparent, i.e. to still have the
following behavior:

* If ccache returns exit code == 0, then any produced stderr comes from
  the compiler and only from the compiler.
* If ccache returns exit code != 0, then ccache may print error messages
  of its own.

The reason is that autoconf configure scripts have been known to fail
tests if the compiler emits anything to stderr even if the produced
result actually works. (And printing to stdout is also a no-no.)
NEWS.txt
ccache.c
util.c