Have scaninc ignore non-existing files
This commit is contained in:
parent
b8c71fa84d
commit
302193a814
1 changed files with 5 additions and 0 deletions
|
@ -125,7 +125,12 @@ int main(int argc, char **argv)
|
|||
if (!exists && (file.FileType() == SourceFileType::Asm || file.FileType() == SourceFileType::Inc))
|
||||
{
|
||||
path = include;
|
||||
if (CanOpenFile(path))
|
||||
exists = true;
|
||||
}
|
||||
if (!exists)
|
||||
continue;
|
||||
|
||||
dependencies_includes.insert(path);
|
||||
bool inserted = dependencies.insert(path).second;
|
||||
if (inserted && exists)
|
||||
|
|
Loading…
Reference in a new issue