-
Notifications
You must be signed in to change notification settings - Fork 10.5k
[Concurrency][SE-review update] Task names update #80984
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
base: main
Are you sure you want to change the base?
Changes from all commits
34b3d12
742f342
0eaad8a
8605347
e63f797
6c87489
32e1b67
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -129,7 +129,6 @@ set(SWIFT_RUNTIME_CONCURRENCY_SWIFT_SOURCES | |
Task+TaskExecutor.swift | ||
TaskCancellation.swift | ||
TaskGroup.swift | ||
TaskGroup+Embedded.swift | ||
DiscardingTaskGroup.swift | ||
TaskLocal.swift | ||
TaskSleep.swift | ||
|
@@ -204,6 +203,12 @@ set(LLVM_OPTIONAL_SOURCES | |
DispatchGlobalExecutor.cpp | ||
) | ||
|
||
set(SWIFT_CONCURRENCY_GYB_SOURCES | ||
Task+init.swift.gyb | ||
TaskGroup+addTask.swift.gyb | ||
Task+startSynchronously.swift.gyb | ||
) | ||
|
||
add_swift_target_library(swift_Concurrency ${SWIFT_STDLIB_LIBRARY_BUILD_TYPES} IS_STDLIB | ||
${SWIFT_RUNTIME_CONCURRENCY_C_SOURCES} | ||
${SWIFT_RUNTIME_CONCURRENCY_EXECUTOR_SOURCES} | ||
|
@@ -212,8 +217,7 @@ add_swift_target_library(swift_Concurrency ${SWIFT_STDLIB_LIBRARY_BUILD_TYPES} I | |
${SWIFT_RUNTIME_CONCURRENCY_NONEMBEDDED_SWIFT_SOURCES} | ||
|
||
GYB_SOURCES | ||
TaskGroup+addTask.swift.gyb | ||
Task+startSynchronously.swift.gyb | ||
${SWIFT_CONCURRENCY_GYB_SOURCES} | ||
|
||
SWIFT_MODULE_DEPENDS_ANDROID Android | ||
SWIFT_MODULE_DEPENDS_LINUX Glibc | ||
|
@@ -309,6 +313,9 @@ if(SWIFT_SHOULD_BUILD_EMBEDDED_STDLIB AND SWIFT_SHOULD_BUILD_EMBEDDED_CONCURRENC | |
${SWIFT_RUNTIME_CONCURRENCY_SWIFT_SOURCES} | ||
${SWIFT_RUNTIME_CONCURRENCY_EMBEDDED_SWIFT_SOURCES} | ||
|
||
GYB_SOURCES | ||
${SWIFT_CONCURRENCY_GYB_SOURCES} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We need to do this and I've followed the pattern that e.g. the Synchronization module does but I'm not sure why I had the wrong SIA_ARCH in the other file when we try to do it here... Maybe it'd be better to just fix or workaround here rather than in the SetIfArchBitness? I wasn't quite sure how though |
||
|
||
SWIFT_COMPILE_FLAGS | ||
${extra_swift_compile_flags} -enable-experimental-feature Embedded | ||
-parse-stdlib -DSWIFT_CONCURRENCY_EMBEDDED | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@etcwilde @kubamracek I'm not sure what I'm doing wrong in
Runtimes/Core/Concurrency/CMakeLists.txt
that the SIA_ARCH ends up like this when we try to addGYB_SOURCES
in theIt seems very much the same like all other modules, like Synchronization, which do this for their gyb as well... Would you be able to help me out so we don't need to do this workaround?
I'm not sure if this workaround is "fine" or would break something in the embedded build for example.