mirror of
https://github.com/apple/swift.git
synced 2026-06-20 15:42:51 +02:00
04eec3aba5
This renames the source file to accomodate static linking of the runtime. When `libswiftCore.lib` is linked against, we would encounter a linker warning due to the replicated filename: ``` libswiftCore.lib(Win32.cpp.obj) : warning LNK4255: library contain multiple objects of the same name; linking object as if no debug info ```
14 lines
596 B
CMake
14 lines
596 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/WindowsThreading.cpp"
|
|
INSTALL_IN_COMPONENT never_install)
|