Don't require .gch to be a directory since a file is also valid

This commit is contained in:
Joel Rosdahl 2010-08-28 16:31:43 +02:00
parent 40346ee48e
commit e8d8daa112

View File

@ -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;
}