From e8d8daa112aeb1058debed3aa38367e90ec032c3 Mon Sep 17 00:00:00 2001 From: Joel Rosdahl Date: Sat, 28 Aug 2010 16:31:43 +0200 Subject: [PATCH] Don't require .gch to be a directory since a file is also valid --- ccache.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ccache.c b/ccache.c index 854d289..87a2a0b 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; }