Include Incremental Dependencies in Module Trace

This commit is contained in:
Robert Widmann
2021-03-01 17:26:42 -08:00
parent 67fadb23e4
commit d946df7895
2 changed files with 12 additions and 5 deletions

View File

@@ -577,7 +577,11 @@ static void computeSwiftModuleTraceInfo(
path::replace_extension(modPath, swiftInterfaceExt);
};
for (auto &depPath : depTracker.getDependencies()) {
auto deps = depTracker.getDependencies();
SmallVector<std::string, 16> dependencies{deps.begin(), deps.end()};
auto incrDeps = depTracker.getIncrementalDependencyPaths();
dependencies.append(incrDeps.begin(), incrDeps.end());
for (const auto &depPath : dependencies) {
// Decide if this is a swiftmodule based on the extension of the raw
// dependency path, as the true file may have a different one.