mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Swift Concurrency would like to be able to use condition variables. Add support to the threading packages. rdar://100236038
21 lines
576 B
CMake
21 lines
576 B
CMake
if(("${SWIFT_HOST_VARIANT_SDK}" STREQUAL "${SWIFT_PRIMARY_VARIANT_SDK}") AND
|
|
("${SWIFT_HOST_VARIANT_ARCH}" STREQUAL "${SWIFT_PRIMARY_VARIANT_ARCH}"))
|
|
add_swift_unittest(SwiftThreadingTests
|
|
Mutex.cpp
|
|
ConditionVariable.cpp
|
|
Once.cpp
|
|
LinuxUlock.cpp
|
|
Fatal.cpp
|
|
)
|
|
|
|
target_link_libraries(SwiftThreadingTests
|
|
PRIVATE
|
|
swiftThreading${SWIFT_PRIMARY_VARIANT_SUFFIX}
|
|
swiftCore${SWIFT_PRIMARY_VARIANT_SUFFIX}
|
|
)
|
|
|
|
if(SWIFT_HOST_VARIANT STREQUAL windows)
|
|
target_link_libraries(SwiftThreadingTests PRIVATE Synchronization)
|
|
endif()
|
|
endif()
|