Skip to content

[Concurrency] Fix new build script. #80408

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 31, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions Runtimes/Core/Concurrency/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ add_library(swift_Concurrency
ConcurrencyHooks.cpp
EmbeddedSupport.cpp
Error.cpp
ExecutorBridge.cpp
ExecutorChecks.cpp
GlobalExecutor.cpp
Setup.cpp
Expand Down Expand Up @@ -47,6 +48,7 @@ add_library(swift_Concurrency
CheckedContinuation.swift
Clock.swift
ContinuousClock.swift
CooperativeExecutor.swift
Deque/_DequeBuffer.swift
Deque/_DequeBufferHeader.swift
Deque/_DequeSlot.swift
Expand All @@ -67,19 +69,27 @@ add_library(swift_Concurrency
Deque/Deque+UnsafeHandle.swift
Deque/UnsafeMutableBufferPointer+Utilities.swift
DiscardingTaskGroup.swift
DummyExecutor.swift
Errors.swift
Executor.swift
ExecutorAssertions.swift
ExecutorBridge.swift
GlobalActor.swift
GlobalConcurrentExecutor.swift
MainActor.swift
PartialAsyncTask.swift
PlatformExecutorDarwin.swift
PlatformExecutorLinux.swift
PlatformExecutorWindows.swift
PriorityQueue.swift
SourceCompatibilityShims.swift
SuspendingClock.swift
Task.swift
Task+PriorityEscalation.swift
Task+TaskExecutor.swift
TaskCancellation.swift
TaskGroup.swift
TaskGroup+Embedded.swift
TaskLocal.swift
TaskSleep.swift
TaskSleepDuration.swift
Expand Down
5 changes: 4 additions & 1 deletion Runtimes/Core/Concurrency/dispatch.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@
find_package(dispatch QUIET REQUIRED)

target_sources(swift_Concurrency PRIVATE
DispatchGlobalExecutor.cpp)
DispatchGlobalExecutor.cpp
DispatchExecutor.swift
CFExecutor.swift
ExecutorImpl.swift)
target_compile_definitions(swift_Concurrency PRIVATE
$<$<COMPILE_LANGUAGE:C,CXX>:-DSWIFT_CONCURRENCY_USES_DISPATCH=1>)
target_compile_options(swift_Concurrency PRIVATE
Expand Down
3 changes: 2 additions & 1 deletion Runtimes/Core/Concurrency/hooked.cmake
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
target_sources(swift_Concurrency PRIVATE
NonDispatchGlobalExecutor.cpp)
ExecutorImpl.swift
PlatformExecutorNone.swift)
3 changes: 2 additions & 1 deletion Runtimes/Core/Concurrency/none.cmake
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
target_sources(swift_Concurrency PRIVATE
NonDispatchGlobalExecutor.cpp)
ExecutorImpl.swift
PlatformExecutorNone.swift)
3 changes: 2 additions & 1 deletion Runtimes/Core/Concurrency/singlethreaded.cmake
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
target_sources(swift_Concurrency PRIVATE
CooperativeGlobalExecutor.cpp)
ExecutorImpl.swift
PlatformExecutorCooperative.swift)