Files
swift-mirror/stdlib/toolchain/CompatibilityThreading/CMakeLists.txt
Alastair Houghton 21ac6149e3 Don't use tsd_private.h in compatibility libraries for ARMv7k.
If we include this file, it generates inline assembly, which would be fine
except that when apps are being built with bitcode, that isn't allowed.

rdar://103274667
2023-01-19 16:48:42 +00:00

21 lines
885 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/Win32.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}
MACCATALYST_BUILD_FLAVOR "zippered")