]> git.ipfire.org Git - thirdparty/ccache.git/commit
feat: Set CCACHE_DISABLE when calling compiler
authorJoel Rosdahl <joel@rosdahl.net>
Fri, 10 Jun 2022 14:12:27 +0000 (16:12 +0200)
committerJoel Rosdahl <joel@rosdahl.net>
Fri, 10 Jun 2022 17:30:55 +0000 (19:30 +0200)
commit5b4fd92cdda6a39fb17e35ef25b85e7e156e25ab
tree524e52610e6716923116ff3c0c1c3478a1c674c1
parentf8f1c35344e37bc52c9fe71daebb5b378bd353f3
feat: Set CCACHE_DISABLE when calling compiler

If ccache for some reason executes a compiler that in turn calls ccache
then ccache will be run twice (and will potentially store two different
result in the cache since the compiler identications differ), which is
not very useful. This could for instance happen if the compiler is a
wrapper script that in turn calls "ccache $compiler ...".

Improve this by setting CCACHE_DISABLE when executing the compiler. Any
subsequent ccache invocations will then fall back to running the real
compiler.
src/ccache.cpp
test/suites/base.bash