Skip to content

Commit 9f5f48a

Browse files
author
David Ungar
committed
Accept old format
1 parent 40bab34 commit 9f5f48a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Sources/SwiftDriver/IncrementalCompilation/BuildRecord.swift

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,8 @@ public struct BuildRecord {
4141
private enum SectionName: String, CaseIterable {
4242
case swiftVersion = "version"
4343
case argsHash = "options"
44+
// Implement this for a smoother transition
45+
case legacyBuildStartTime = "build_time"
4446
case buildStartTime = "build_start_time"
4547
case buildEndTime = "build_end_time"
4648
case inputInfos = "inputs"
@@ -87,7 +89,8 @@ public extension BuildRecord {
8789
return nil
8890
}
8991
argsHash = s
90-
case SectionName.buildStartTime.serializedName:
92+
case SectionName.buildStartTime.serializedName,
93+
SectionName.legacyBuildStartTime.serializedName:
9194
guard let d = Self.decodeDate(value,
9295
forInputInfo: false,
9396
failedToReadOutOfDateMap)

0 commit comments

Comments
 (0)