From c440a94997b55f49844ef8cde9e0866eb9ad415b Mon Sep 17 00:00:00 2001 From: Joel Rosdahl Date: Tue, 6 Mar 2018 21:11:23 +0100 Subject: [PATCH] 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. --- src/cleanup.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/cleanup.c b/src/cleanup.c index 458408264..e0b4c620c 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; -- 2.47.2