mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
This doesn't actually add proper WASI support - it just fixes the build so that we're no worse off than we were. rdar://141348916
26 lines
863 B
Swift
26 lines
863 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 os(WASI)
|
|
|
|
import Swift
|
|
|
|
// The default executors for now are Dispatch-based
|
|
@available(SwiftStdlib 6.2, *)
|
|
public struct PlatformExecutorFactory: ExecutorFactory {
|
|
public static let mainExecutor: any MainExecutor = DummyMainExecutor()
|
|
public static let defaultExecutor: any TaskExecutor
|
|
= DummyTaskExecutor()
|
|
}
|
|
|
|
#endif // os(WASI)
|