Skip to content

Commit

Permalink
Remember files processed by the driver.
Browse files Browse the repository at this point in the history
We did this previously but stopped doing it with #1462.
  • Loading branch information
bbannier committed Jul 31, 2024
1 parent c3abbbe commit 4bbc2c7
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions hilti/toolchain/src/compiler/driver.cc
Original file line number Diff line number Diff line change
Expand Up @@ -573,8 +573,6 @@ Result<Nothing> Driver::addInput(const hilti::rt::filesystem::path& path) {

(*unit)->setRequiresCompilation();
_addUnit(*unit);

return Nothing();
}

else if ( path.extension() == ".cc" || path.extension() == ".cxx" ) {
Expand Down Expand Up @@ -612,11 +610,13 @@ Result<Nothing> Driver::addInput(const hilti::rt::filesystem::path& path) {
} catch ( const hilti::rt::EnvironmentError& e ) {
hilti::rt::fatalError(e.what());
}

return Nothing();
}

return error("unsupported file type", path);
_processed_paths.insert(path);

_processed_paths.insert(path.native());

return Nothing();
}

Result<Nothing> Driver::addInput(declaration::module::UID uid) {
Expand Down

0 comments on commit 4bbc2c7

Please sign in to comment.