Skip to content

Commit d575017

Browse files
author
David Ungar
committed
WIP batching and spelling
1 parent b115874 commit d575017

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

Sources/SwiftDriver/Incremental Compilation/IncrementalCompilationState.swift

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -374,27 +374,25 @@ extension IncrementalCompilationState {
374374
recordSkippedGroup(group)
375375
}
376376
else {
377-
try scheduleMandatoryPreOrCompile(group: group, formBatchedJobs: formBatchedJobs)
377+
try scheduleMandatoryPreOrCompile(group: group)
378378
}
379379
}
380380
}
381381

382382
/// Remember that `group` (a compilation and possibly bitcode generation)
383383
/// must definitely be executed.
384384
private func scheduleMandatoryPreOrCompile(
385-
group: [Job],
386-
formBatchedJobs: ([Job]) throws -> [Job]
387-
) throws {
385+
group: [Job]) {
388386
if let report = reportIncrementalDecision {
389387
for job in group {
390388
report("Queuing \(job.descriptionForLifecycle)", nil)
391389
}
392390
}
393-
mandatoryPreOrCompileJobsInOrder.append(contentsOf: try formBatchedJobs(group))
391+
mandatoryPreOrCompileJobsInOrder.append(contentsOf: group)
394392
unfinishedMandatoryJobs.formUnion(group)
395-
let mandantoryCompilationInputs = group
393+
let mandatoryCompilationInputs = group
396394
.flatMap {$0.kind == .compile ? $0.primaryInputs : []}
397-
pendingInputs.formUnion(mandantoryCompilationInputs)
395+
pendingInputs.formUnion(mandatoryCompilationInputs)
398396
}
399397

400398
/// Decide if this job does not need to run, unless some yet-to-be-discovered dependency changes.

0 commit comments

Comments
 (0)