Skip to content

Commit 6f5a0c5

Browse files
committed
[stdlib] Make PlatformExecutorFactory and ExecutorFactory deploy to 6.3 instead of 6.2.
This code is public on main, but not on 6.2, so if one compiles a binary for 6.2 on main and then attempts to use a stdlib from a 6.2 aligned macOS, one gets an ABI error since the type isn't there. Just mark these types as being available in 6.3 so that way this is future proofed and allows for main binaries to run against a 6.2 aligned macOS stdlib.
1 parent 60b3b08 commit 6f5a0c5

8 files changed

+9
-9
lines changed

stdlib/public/Concurrency/Executor.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -591,7 +591,7 @@ public protocol MainExecutor: RunLoopExecutor, SerialExecutor {
591591

592592
/// An ExecutorFactory is used to create the default main and task
593593
/// executors.
594-
@available(StdlibDeploymentTarget 6.2, *)
594+
@available(StdlibDeploymentTarget 6.3, *)
595595
public protocol ExecutorFactory {
596596
#if os(WASI) || !$Embedded
597597
/// Constructs and returns the main executor, which is started implicitly
@@ -604,7 +604,7 @@ public protocol ExecutorFactory {
604604
static var defaultExecutor: any TaskExecutor { get }
605605
}
606606

607-
@available(StdlibDeploymentTarget 6.2, *)
607+
@available(StdlibDeploymentTarget 6.3, *)
608608
typealias DefaultExecutorFactory = PlatformExecutorFactory
609609

610610
@available(StdlibDeploymentTarget 6.2, *)

stdlib/public/Concurrency/PlatformExecutorCooperative.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
import Swift
1414

1515
// This platform uses a single, global, CooperativeExecutor
16-
@available(StdlibDeploymentTarget 6.2, *)
16+
@available(StdlibDeploymentTarget 6.3, *)
1717
public struct PlatformExecutorFactory: ExecutorFactory {
1818
static let executor = CooperativeExecutor()
1919
public static var mainExecutor: any MainExecutor { executor }

stdlib/public/Concurrency/PlatformExecutorDarwin.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
import Swift
1616

17-
@available(StdlibDeploymentTarget 6.2, *)
17+
@available(StdlibDeploymentTarget 6.3, *)
1818
public struct PlatformExecutorFactory: ExecutorFactory {
1919
public static var mainExecutor: any MainExecutor {
2020
if CoreFoundation.isPresent {

stdlib/public/Concurrency/PlatformExecutorFreeBSD.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
import Swift
1616

1717
// The default executors for now are Dispatch-based
18-
@available(SwiftStdlib 6.2, *)
18+
@available(SwiftStdlib 6.3, *)
1919
public struct PlatformExecutorFactory: ExecutorFactory {
2020
public static let mainExecutor: any MainExecutor = DispatchMainExecutor()
2121
public static let defaultExecutor: any TaskExecutor

stdlib/public/Concurrency/PlatformExecutorLinux.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
import Swift
1616

1717
// The default executors for now are Dispatch-based
18-
@available(StdlibDeploymentTarget 6.2, *)
18+
@available(StdlibDeploymentTarget 6.3, *)
1919
public struct PlatformExecutorFactory: ExecutorFactory {
2020
public static let mainExecutor: any MainExecutor = DispatchMainExecutor()
2121
public static let defaultExecutor: any TaskExecutor

stdlib/public/Concurrency/PlatformExecutorNone.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
import Swift
1414

15-
@available(StdlibDeploymentTarget 6.2, *)
15+
@available(StdlibDeploymentTarget 6.3, *)
1616
public struct PlatformExecutorFactory: ExecutorFactory {
1717
public static let mainExecutor: any MainExecutor = UnimplementedMainExecutor()
1818
public static let defaultExecutor: any TaskExecutor = UnimplementedTaskExecutor()

stdlib/public/Concurrency/PlatformExecutorOpenBSD.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
import Swift
1616

1717
// The default executors for now are Dispatch-based
18-
@available(SwiftStdlib 6.2, *)
18+
@available(SwiftStdlib 6.3, *)
1919
public struct PlatformExecutorFactory: ExecutorFactory {
2020
public static let mainExecutor: any MainExecutor = DispatchMainExecutor()
2121
public static let defaultExecutor: any TaskExecutor

stdlib/public/Concurrency/PlatformExecutorWindows.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
import Swift
1616

1717
// The default executors for now are Dispatch-based
18-
@available(StdlibDeploymentTarget 6.2, *)
18+
@available(StdlibDeploymentTarget 6.3, *)
1919
public struct PlatformExecutorFactory: ExecutorFactory {
2020
public static let mainExecutor: any MainExecutor = DispatchMainExecutor()
2121
public static let defaultExecutor: any TaskExecutor =

0 commit comments

Comments
 (0)