mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
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.
26 lines
919 B
Swift
26 lines
919 B
Swift
//===----------------------------------------------------------------------===//
|
|
//
|
|
// This source file is part of the Swift.org open source project
|
|
//
|
|
// Copyright (c) 2020 - 2025 Apple Inc. and the Swift project authors
|
|
// Licensed under Apache License v2.0 with Runtime Library Exception
|
|
//
|
|
// See https://swift.org/LICENSE.txt for license information
|
|
// See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
#if !$Embedded && (os(Linux) || os(Android))
|
|
|
|
import Swift
|
|
|
|
// The default executors for now are Dispatch-based
|
|
@available(StdlibDeploymentTarget 6.3, *)
|
|
public struct PlatformExecutorFactory: ExecutorFactory {
|
|
public static let mainExecutor: any MainExecutor = DispatchMainExecutor()
|
|
public static let defaultExecutor: any TaskExecutor
|
|
= DispatchGlobalTaskExecutor()
|
|
}
|
|
|
|
#endif // os(Linux)
|