From 5baa33368eb60c463bedeaf1da59fa20959e0d26 Mon Sep 17 00:00:00 2001 From: Jonathan Grynspan Date: Tue, 8 Jul 2025 10:42:27 -0400 Subject: [PATCH] Bump the required compiler version for `systemEpoch` to 6.3. 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. --- Sources/Testing/Events/TimeValue.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Sources/Testing/Events/TimeValue.swift b/Sources/Testing/Events/TimeValue.swift index 143aa7091..838eb381b 100644 --- a/Sources/Testing/Events/TimeValue.swift +++ b/Sources/Testing/Events/TimeValue.swift @@ -54,7 +54,7 @@ struct TimeValue: Sendable { @available(_clockAPI, *) init(_ instant: SuspendingClock.Instant) { -#if compiler(>=6.2) +#if compiler(>=6.3) self.init(SuspendingClock().systemEpoch.duration(to: instant)) #else self.init(unsafeBitCast(instant, to: Duration.self)) @@ -114,7 +114,7 @@ extension Duration { @available(_clockAPI, *) extension SuspendingClock.Instant { init(_ timeValue: TimeValue) { -#if compiler(>=6.2) +#if compiler(>=6.3) self = SuspendingClock().systemEpoch.advanced(by: Duration(timeValue)) #else self = unsafeBitCast(Duration(timeValue), to: SuspendingClock.Instant.self)