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 ```
22 lines
971 B
CMake
22 lines
971 B
CMake
# This is the counterpart to lib/Threading/CMakeLists.txt. Any updates
|
|
# need to be reflected in both places.
|
|
|
|
add_swift_target_library(swiftCompatibilityThreading 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
|
|
TARGET_SDKS ${SWIFT_DARWIN_PLATFORMS}
|
|
|
|
C_COMPILE_FLAGS
|
|
${CXX_COMPILE_FLAGS}
|
|
"-DSWIFT_THREADING_IS_COMPATIBILITY_LIBRARY"
|
|
DEPLOYMENT_VERSION_OSX ${COMPATIBILITY_MINIMUM_DEPLOYMENT_VERSION_OSX}
|
|
DEPLOYMENT_VERSION_IOS ${COMPATIBILITY_MINIMUM_DEPLOYMENT_VERSION_IOS}
|
|
DEPLOYMENT_VERSION_TVOS ${COMPATIBILITY_MINIMUM_DEPLOYMENT_VERSION_TVOS}
|
|
DEPLOYMENT_VERSION_WATCHOS ${COMPATIBILITY_MINIMUM_DEPLOYMENT_VERSION_WATCHOS}
|
|
DEPLOYMENT_VERSION_XROS ${COMPATIBILITY_MINIMUM_DEPLOYMENT_VERSION_XROS}
|
|
|
|
MACCATALYST_BUILD_FLAVOR "zippered")
|