Skip to content

Commit 404b142

Browse files
authored
Bump the required compiler version for systemEpoch to 6.3. (#1213)
There are some workflows including Xcode 26 betas where the compiler version is 6.2 but `systemEpoch` isn't available yet, so bump the requirement for it to 6.3. This is temporary and we can delete the check outright after 6.2 ships. ### Checklist: - [x] Code and documentation should follow the style of the [Style Guide](https://github.com/apple/swift-testing/blob/main/Documentation/StyleGuide.md). - [x] If public symbols are renamed or modified, DocC references should be updated.
1 parent 74f2c74 commit 404b142

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Sources/Testing/Events/TimeValue.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ struct TimeValue: Sendable {
5454

5555
@available(_clockAPI, *)
5656
init(_ instant: SuspendingClock.Instant) {
57-
#if compiler(>=6.2)
57+
#if compiler(>=6.3)
5858
self.init(SuspendingClock().systemEpoch.duration(to: instant))
5959
#else
6060
self.init(unsafeBitCast(instant, to: Duration.self))
@@ -114,7 +114,7 @@ extension Duration {
114114
@available(_clockAPI, *)
115115
extension SuspendingClock.Instant {
116116
init(_ timeValue: TimeValue) {
117-
#if compiler(>=6.2)
117+
#if compiler(>=6.3)
118118
self = SuspendingClock().systemEpoch.advanced(by: Duration(timeValue))
119119
#else
120120
self = unsafeBitCast(Duration(timeValue), to: SuspendingClock.Instant.self)

0 commit comments

Comments
 (0)