Files
swift-mirror/lib/Threading/CMakeLists.txt
Saleem Abdulrasool 04eec3aba5 Threading: rename Win32.cpp to WindowsThreading.cpp (NFC)
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
```
2026-02-11 16:18:56 -08:00

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)