Skip to content

Commit 8a3d972

Browse files
author
David Ungar
committed
Match with no date field in build record.
1 parent dc7fa81 commit 8a3d972

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Sources/SwiftDriver/Incremental Compilation/BuildRecord.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,8 @@ public extension BuildRecord {
8383
else { throw SimpleErrors.couldNotDecodeBuildRecord }
8484
var argsHash: String? = defaultArgsHash
8585
var swiftVersion: String?
86-
var buildTime: Date?
86+
// Legacy driver does not disable incremental if no buildTime field.
87+
var buildTime: Date = .distantPast
8788
var inputInfos: [VirtualPath: InputInfo]?
8889
for (key, value) in sections {
8990
guard let k = key.string else { throw SimpleErrors.sectionNameNotString }

0 commit comments

Comments
 (0)