]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
Don't check ctime when determining if an include file is too new
authorJoel Rosdahl <joel@rosdahl.net>
Sun, 25 Apr 2010 12:04:58 +0000 (14:04 +0200)
committerJoel Rosdahl <joel@rosdahl.net>
Sun, 25 Apr 2010 12:04:58 +0000 (14:04 +0200)
If you backdate the include file's mtime, you have to take the
consequences...

ccache.c

index 37530277681ce719ed0b9bc4349487a50fdd9116..c8b379d77247b280a76ade2ec73429653bbd39ef 100644 (file)
--- a/ccache.c
+++ b/ccache.c
@@ -331,8 +331,7 @@ static void remember_include_file(char *path, size_t path_len)
                /* Ignore directory, typically $PWD. */
                goto ignore;
        }
-       if (st.st_mtime >= time_of_compilation
-           || st.st_ctime >= time_of_compilation) {
+       if (st.st_mtime >= time_of_compilation) {
                cc_log("Include file %s too new", path);
                goto failure;
        }