Merge pull request #8359 from graydon/rdar-31044067-missing-dependencies-mark-2

This commit is contained in:
swift-ci
2017-03-29 16:12:23 -07:00
committed by GitHub
11 changed files with 197 additions and 57 deletions

View File

@@ -117,10 +117,11 @@ static bool emitMakeDependencies(DiagnosticEngine &diags,
out << escape(targetName) << " :";
// First include all other files in the module. Make-style dependencies
// need to be conservative!
for (StringRef path : opts.InputFilenames)
for (auto const &path : reversePathSortedFilenames(opts.InputFilenames))
out << ' ' << escape(path);
// Then print dependencies we've picked up during compilation.
for (StringRef path : depTracker.getDependencies())
for (auto const &path :
reversePathSortedFilenames(depTracker.getDependencies()))
out << ' ' << escape(path);
out << '\n';
});