mirror of
https://github.com/reactos/ccache.git
synced 2025-03-04 00:37:02 +00:00
Don't require .gch to be a directory since a file is also valid
This commit is contained in:
parent
40346ee48e
commit
e8d8daa112
2
ccache.c
2
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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user