diff options
author | Joel Rosdahl <joel@rosdahl.net> | 2018-03-06 21:11:23 +0100 |
---|---|---|
committer | Joel Rosdahl <joel@rosdahl.net> | 2018-03-06 21:11:23 +0100 |
commit | c440a94997b55f49844ef8cde9e0866eb9ad415b (patch) | |
tree | 989e042e157bd5cc3337dc2e84c72f813be6c14f | |
parent | 82010e0eb9cb629f61ea516542daf05a53010716 (diff) | |
download | ccache-c440a94997b55f49844ef8cde9e0866eb9ad415b.tar.gz |
cleanup: Remove special-casing of files from ccache 2.x
It feels like a safe assumption that nobody will run ccache 3.4.x and
2.x on the same cache directory.
-rw-r--r-- | src/cleanup.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/cleanup.c b/src/cleanup.c index 45840826..e0b4c620 100644 --- a/src/cleanup.c +++ b/src/cleanup.c @@ -140,8 +140,7 @@ sort_and_clean(void) || str_eq(ext, ".d") || str_eq(ext, ".gcno") || str_eq(ext, ".dia") - || str_eq(ext, ".stderr") - || str_eq(ext, "")) { + || str_eq(ext, ".stderr")) { char *base = remove_extension(files[i]->fname); if (!str_eq(base, last_base)) { // Avoid redundant unlinks. // Make sure that all sibling files are deleted so that a cached result @@ -154,7 +153,6 @@ sort_and_clean(void) delete_sibling_file(base, ".gcno"); delete_sibling_file(base, ".dia"); delete_sibling_file(base, ".stderr"); - delete_sibling_file(base, ""); // Object file from ccache 2.4. } free(last_base); last_base = base; |