File tree Expand file tree Collapse file tree 4 files changed +8
-5
lines changed
stdlib/public/Concurrency Expand file tree Collapse file tree 4 files changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -171,8 +171,7 @@ set(SWIFT_RUNTIME_CONCURRENCY_SWIFT_SOURCES
171171
172172set (SWIFT_RUNTIME_CONCURRENCY_EXECUTOR_SOURCES)
173173set (SWIFT_RUNTIME_CONCURRENCY_NONEMBEDDED_SWIFT_SOURCES)
174- set (SWIFT_RUNTIME_CONCURRENCY_NONEMBEDDED_C_SOURCES
175- )
174+ set (SWIFT_RUNTIME_CONCURRENCY_NONEMBEDDED_C_SOURCES)
176175
177176if ("${SWIFT_CONCURRENCY_GLOBAL_EXECUTOR} " STREQUAL "dispatch" )
178177 set (SWIFT_RUNTIME_CONCURRENCY_EXECUTOR_SOURCES
@@ -322,7 +321,6 @@ if(SWIFT_SHOULD_BUILD_EMBEDDED_STDLIB AND SWIFT_SHOULD_BUILD_EMBEDDED_CONCURRENC
322321 )
323322 endif ()
324323
325-
326324 set (SWIFT_SDK_embedded_THREADING_PACKAGE none)
327325 set (SWIFT_SDK_embedded_ARCH_${arch} _MODULE "${mod} " )
328326 set (SWIFT_SDK_embedded_ARCH_${mod} _MODULE "${mod} " )
Original file line number Diff line number Diff line change @@ -610,7 +610,7 @@ func _createDefaultExecutors() {
610610 }
611611}
612612
613- #if ! SWIFT_STDLIB_TASK_TO_THREAD_MODEL_CONCURRENCY
613+ #if os(WASI) || (!$Embedded && ! SWIFT_STDLIB_TASK_TO_THREAD_MODEL_CONCURRENCY)
614614extension MainActor {
615615 @available ( StdlibDeploymentTarget 6 . 2 , * )
616616 static var _executor : ( any MainExecutor ) ? = nil
@@ -627,7 +627,7 @@ extension MainActor {
627627 return _executor!
628628 }
629629}
630- #endif // ! SWIFT_STDLIB_TASK_TO_THREAD_MODEL_CONCURRENCY
630+ #endif // os(WASI) || (!$Embedded && ! SWIFT_STDLIB_TASK_TO_THREAD_MODEL_CONCURRENCY)
631631
632632extension Task where Success == Never , Failure == Never {
633633 @available ( StdlibDeploymentTarget 6 . 2 , * )
Original file line number Diff line number Diff line change @@ -91,6 +91,7 @@ internal func _jobGetExecutorPrivateData(
9191 _ job: Builtin . Job
9292) -> UnsafeMutableRawPointer
9393
94+ #if os(WASI) || !$Embedded
9495#if !SWIFT_STDLIB_TASK_TO_THREAD_MODEL_CONCURRENCY
9596@available ( StdlibDeploymentTarget 6 . 2 , * )
9697@_silgen_name ( " swift_getMainExecutor " )
@@ -103,6 +104,7 @@ internal func _getMainExecutorAsSerialExecutor() -> (any SerialExecutor)? {
103104@_silgen_name ( " swift_getMainExecutor " )
104105internal func _getMainExecutorAsSerialExecutor( ) -> ( any SerialExecutor ) ?
105106#endif // SWIFT_STDLIB_TASK_TO_THREAD_MODEL_CONCURRENCY
107+ #endif // os(WASI) || !$Embedded
106108
107109@available ( StdlibDeploymentTarget 6 . 2 , * )
108110@_silgen_name ( " swift_dispatchMain " )
Original file line number Diff line number Diff line change 1212
1313import Swift
1414
15+ #if os(WASI) || !$Embedded
16+
1517#if SWIFT_STDLIB_TASK_TO_THREAD_MODEL_CONCURRENCY
1618@available ( SwiftStdlib 5 . 1 , * )
1719@available ( * , unavailable, message: " Unavailable in task-to-thread concurrency model " )
@@ -195,3 +197,4 @@ public func _deinitOnExecutorMainActorBackDeploy(
195197
196198#endif // !SWIFT_STDLIB_TASK_TO_THREAD_MODEL_CONCURRENCY
197199
200+ #endif // os(WASI) || !$Embedded
You can’t perform that action at this time.
0 commit comments