Skip to content

Commit 772c415

Browse files
committed
[Concurrency] Remove libatomic dependency on Concurrency module on Linux
rdar://80918942
1 parent e088438 commit 772c415

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

stdlib/public/Concurrency/CMakeLists.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,7 @@ endif()
3333
# Frustratingly, in many cases this isn't necessary because the
3434
# sequence is inlined, but we have some code that's just subtle
3535
# enough to turn into runtime calls.
36-
if(SWIFT_HOST_VARIANT STREQUAL "linux" OR
37-
SWIFT_HOST_VARIANT STREQUAL "android")
36+
if(SWIFT_HOST_VARIANT STREQUAL "android")
3837
list(APPEND SWIFT_RUNTIME_CONCURRENCY_SWIFT_LINK_FLAGS
3938
-latomic)
4039
endif()

stdlib/public/Concurrency/TaskPrivate.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ class TaskFutureWaitAsyncContext : public AsyncContext {
132132
} // end anonymous namespace
133133

134134
/// The current state of a task's status records.
135-
class ActiveTaskStatus {
135+
class alignas(sizeof(void*) * 2) ActiveTaskStatus {
136136
enum : uintptr_t {
137137
/// The current running priority of the task.
138138
PriorityMask = 0xFF,

0 commit comments

Comments
 (0)