File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed
Sources/SwiftDriverExecution Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -220,11 +220,15 @@ public final class MultiJobExecutor {
220
220
if let newJobs = try incrementalCompilationState?
221
221
. collectJobsDiscoveredToBeNeededAfterFinishing ( job: job, result: result) {
222
222
let newJobIndices = Self . addJobs ( newJobs, to: & jobs, producing: & producerMap)
223
- needInputFor ( indices: newJobIndices)
224
- }
225
- else {
226
- needInputFor ( indices: postCompileIndices)
223
+ if !newJobIndices. isEmpty {
224
+ // We discovered new compile jobs to finish
225
+ needInputFor ( indices: newJobIndices)
226
+ return
227
+ }
227
228
}
229
+ // If we find no other compile jobs to finish, we should perform those
230
+ // post-compile jobs.
231
+ needInputFor ( indices: postCompileIndices)
228
232
}
229
233
fileprivate func needInputFor< Indices: Collection > ( indices: Indices )
230
234
where Indices. Element == Int
You can’t perform that action at this time.
0 commit comments