Skip to content

Commit 2f2da5d

Browse files
author
David Ungar
committed
Address review comments.
1 parent 9f5f48a commit 2f2da5d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Sources/SwiftDriver/IncrementalCompilation/IncrementalCompilationState.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public final class IncrementalCompilationState {
4949
/// Can compare input mod times against this.
5050
private let buildStartTime: Date
5151

52-
/// In order to decide while postCompile jobs to run, need to compile their outputs against the build time
52+
/// In order to decide while postCompile jobs to run, need to compare their outputs against the build time
5353
private let buildEndTime: Date
5454

5555
private let fileSystem: FileSystem
@@ -310,7 +310,7 @@ extension IncrementalCompilationState {
310310
public func canSkipPostCompile(job: Job) -> Bool {
311311
job.outputs.allSatisfy {output in
312312
let fileModTime = (try? fileSystem.lastModificationTime(for: output.file)) ?? .distantFuture
313-
return fileModTime < buildEndTime}
313+
return fileModTime <= buildEndTime}
314314
}
315315
}
316316

0 commit comments

Comments
 (0)