]> git.ipfire.org Git - thirdparty/ccache.git/commit
Don't use cache when building precompiled header with changed deps
authorTor Arne Vestbø <tor.arne.vestbo@qt.io>
Thu, 15 Jun 2017 12:40:16 +0000 (14:40 +0200)
committerJoel Rosdahl <joel@rosdahl.net>
Wed, 19 Jul 2017 20:41:34 +0000 (22:41 +0200)
commitd7712b3d22ac5f6e76784bbfe8e6c08d281c7bcd
tree69d9c16e3c21491a2c8475abd7bff834aa01c25d
parent10dcf86d757b1af7338f87b6a48363339780aef5
Don't use cache when building precompiled header with changed deps

If one of the included files in a precompiled header is touched,
changing only its mtime, clang will produce a fatal error when the
precompiled header is then used:

    file 'foo.h' has been modified since the precompiled header 'foo.pch' was built

We need to take this into account when producing precompiled headers,
so that we don't pick out stale objects from the cache. This works
fine for direct mode, but in preprocess mode we don't have enough
information to decide if the object is still valid, so we skip the
cache entirely in that mode.
ccache.c
ccache.h
manifest.c
test.sh