Skip to content

Commit

Permalink
Have scaninc ignore non-existing files
Browse files Browse the repository at this point in the history
  • Loading branch information
GriffinRichards committed Sep 14, 2024
1 parent b8c71fa commit 302193a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tools/scaninc/scaninc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 302193a

Please sign in to comment.