Include cross-module dependencies in swiftdeps files.

These are the same dependencies collected for .d files, including
headers and imported swiftmodules. These can also cause a file to be out
of date.

Part of rdar://problem/19270920

Swift SVN r24334
This commit is contained in:
Jordan Rose
2015-01-10 00:38:09 +00:00
parent 16927ccb3d
commit 97b3a3da40
3 changed files with 43 additions and 13 deletions

View File

@@ -147,9 +147,6 @@ bool CompilerInstance::setup(const CompilerInvocation &Invok) {
for (unsigned i = 0, e = Invocation.getInputFilenames().size(); i != e; ++i) {
auto &File = Invocation.getInputFilenames()[i];
if (DepTracker)
DepTracker->addDependency(File);
// FIXME: Working with filenames is fragile, maybe use the real path
// or have some kind of FileManager.
using namespace llvm::sys::path;