Skip to content

Commit e5046d8

Browse files
author
David Ungar
committed
Keep old build_time field label
1 parent 271abbd commit e5046d8

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

Sources/SwiftDriver/IncrementalCompilation/BuildRecord.swift

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +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"
46-
case buildStartTime = "build_start_time"
44+
// Keep "build_time" for smoother upgrades/downgrades
45+
case buildStartTime = "build_time"
4746
case buildEndTime = "build_end_time"
4847
case inputInfos = "inputs"
4948

@@ -89,8 +88,7 @@ public extension BuildRecord {
8988
return nil
9089
}
9190
argsHash = s
92-
case SectionName.buildStartTime.serializedName,
93-
SectionName.legacyBuildStartTime.serializedName:
91+
case SectionName.buildStartTime.serializedName:
9492
guard let d = Self.decodeDate(value,
9593
forInputInfo: false,
9694
failedToReadOutOfDateMap)

0 commit comments

Comments
 (0)