File tree Expand file tree Collapse file tree 3 files changed +2
-8
lines changed Expand file tree Collapse file tree 3 files changed +2
-8
lines changed Original file line number Diff line number Diff line change @@ -278,8 +278,6 @@ class ModuleDepGraph {
278
278
assert (swiftDeps.hasValue () && " Don't call me for expats." );
279
279
auto iter = jobsBySwiftDeps.find (swiftDeps.getValue ());
280
280
assert (iter != jobsBySwiftDeps.end () && " All jobs should be tracked." );
281
- assert (getSwiftDeps (iter->second ) == swiftDeps.getValue () &&
282
- " jobsBySwiftDeps should be inverse of getSwiftDeps." );
283
281
return iter->second ;
284
282
}
285
283
Original file line number Diff line number Diff line change @@ -1161,10 +1161,6 @@ namespace driver {
1161
1161
continue ;
1162
1162
}
1163
1163
1164
- // Is this module out of date? If not, just keep searching.
1165
- if (Comp.getLastBuildTime () >= depStatus.getLastModificationTime ())
1166
- continue ;
1167
-
1168
1164
// Can we run a cross-module incremental build at all? If not, fallback.
1169
1165
if (!Comp.getEnableCrossModuleIncrementalBuild ()) {
1170
1166
fallbackToExternalBehavior (external);
Original file line number Diff line number Diff line change @@ -120,7 +120,7 @@ ModuleDepGraph::Changes ModuleDepGraph::loadFromSwiftModuleBuffer(
120
120
SourceFileDepGraph::loadFromSwiftModuleBuffer (buffer);
121
121
if (!sourceFileDepGraph)
122
122
return None;
123
- registerJob ( Cmd);
123
+ jobsBySwiftDeps. insert ( std::make_pair (buffer. getBufferIdentifier (), Cmd) );
124
124
auto changes = integrate (*sourceFileDepGraph, buffer.getBufferIdentifier ());
125
125
if (verifyFineGrainedDependencyGraphAfterEveryImport)
126
126
verify ();
@@ -445,11 +445,11 @@ bool ModuleDepGraph::recordWhatUseDependsUpon(
445
445
StringRef externalSwiftDeps = def->getKey ().getName ();
446
446
if (def->getKey ().getKind () == NodeKind::externalDepend) {
447
447
externalDependencies.insert (externalSwiftDeps.str ());
448
+ useHasNewExternalDependency = true ;
448
449
} else if (def->getKey ().getKind () ==
449
450
NodeKind::incrementalExternalDepend) {
450
451
incrementalExternalDependencies.insert (externalSwiftDeps.str ());
451
452
}
452
- useHasNewExternalDependency = true ;
453
453
}
454
454
});
455
455
return useHasNewExternalDependency;
You can’t perform that action at this time.
0 commit comments