From: Joel Rosdahl Date: Sat, 30 Dec 2017 19:49:25 +0000 (+0100) Subject: Don't overwrite cached .d file with a version with absolute paths X-Git-Tag: v3.3.5~18 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=04c6075580d2c42f5a6b83687c25a40d66cb5963;p=thirdparty%2Fccache.git Don't overwrite cached .d file with a version with absolute paths The .d file has already been put in the cache by to_cache (and potentially converted to relative paths using use_relative_paths_in_depfile). This fixes what seems to be a mistake in 38301c0d. --- diff --git a/NEWS.txt b/NEWS.txt index 1eb16f61c..06fbb9fb4 100644 --- a/NEWS.txt +++ b/NEWS.txt @@ -22,6 +22,9 @@ Bug fixes corresponding header files have an updated timestamp. This fixes complaints from clang. +- Fixed a bug related to erroneously storing a dependency file with absolute + paths in the cache on a preprocessed hit. + ccache 3.3.4 ------------ diff --git a/ccache.c b/ccache.c index fd1b4ce1c..7d05af4dc 100644 --- a/ccache.c +++ b/ccache.c @@ -1964,11 +1964,6 @@ from_cache(enum fromcache_call_mode mode, bool put_object_in_manifest) update_mtime(cached_dwo); } - if (generating_dependencies && mode == FROMCACHE_CPP_MODE - && !conf->read_only && !conf->read_only_direct) { - put_file_in_cache(output_dep, cached_dep); - } - send_cached_stderr(); if (put_object_in_manifest) {