mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
We need ThreadSanitizer.cpp in libswiftCore for the runtime case, but we also need it in libswiftThreading for non-runtime cases. rdar://1106655213
14 lines
585 B
CMake
14 lines
585 B
CMake
# This is the counterpart to lib/Threading/CMakeLists.txt. Any updates
|
|
# need to be reflected in both places.
|
|
|
|
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/../../cmake/modules")
|
|
include(AddSwiftStdlib)
|
|
|
|
# This should *not* include ThreadSanitizer.cpp, as that is part of libswiftCore
|
|
add_swift_target_library(swiftThreading OBJECT_LIBRARY
|
|
"${SWIFT_SOURCE_DIR}/lib/Threading/C11.cpp"
|
|
"${SWIFT_SOURCE_DIR}/lib/Threading/Linux.cpp"
|
|
"${SWIFT_SOURCE_DIR}/lib/Threading/Pthreads.cpp"
|
|
"${SWIFT_SOURCE_DIR}/lib/Threading/Win32.cpp"
|
|
INSTALL_IN_COMPONENT never_install)
|