]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
Don't require .gch to be a directory since a file is also valid
authorJoel Rosdahl <joel@rosdahl.net>
Sat, 28 Aug 2010 14:31:43 +0000 (16:31 +0200)
committerJoel Rosdahl <joel@rosdahl.net>
Sat, 28 Aug 2010 14:31:43 +0000 (16:31 +0200)
ccache.c

index 854d289d74476d4aa484b48a0e8a4a6c33ad8822..87a2a0bba13169b1a276cd57db57e655c05407a5 100644 (file)
--- a/ccache.c
+++ b/ccache.c
@@ -1596,7 +1596,7 @@ cc_process_args(struct args *orig_args, struct args **preprocessor_args,
 
                                        /* Try to be smart about detecting precompiled headers */
                                        pchpath = format("%s.gch", argv[i+1]);
-                                       if (stat(pchpath, &st) == 0 && S_ISDIR(st.st_mode)) {
+                                       if (stat(pchpath, &st) == 0) {
                                                found_pch = 1;
                                        }