From: Joel Rosdahl Date: Sat, 28 Aug 2010 14:31:43 +0000 (+0200) Subject: Don't require .gch to be a directory since a file is also valid X-Git-Tag: v3.1~45 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e8d8daa112aeb1058debed3aa38367e90ec032c3;p=thirdparty%2Fccache.git Don't require .gch to be a directory since a file is also valid --- diff --git a/ccache.c b/ccache.c index 854d289d7..87a2a0bba 100644 --- 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; }