mirror of
https://github.com/apple/swift.git
synced 2026-02-27 18:26:24 +01:00
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 ```
15 lines
516 B
CMake
15 lines
516 B
CMake
# If you update this, you also need to update the CMakeLists.txt file in
|
|
# stdlib/public/Threading AND the one in stdlib/toolchain/CompatibilityThreading
|
|
|
|
# Note that it is *not* an error that Errors.cpp is only listed here.
|
|
# It shouldn't be in the other places because those are OBJECT_LIBRARYs
|
|
# and things that use them should be defining their own fatal error handler.
|
|
|
|
add_swift_host_library(swiftThreading STATIC
|
|
C11.cpp
|
|
Linux.cpp
|
|
Pthreads.cpp
|
|
WindowsThreading.cpp
|
|
Errors.cpp
|
|
ThreadSanitizer.cpp)
|