mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Update tests to match, and rewrite SwiftPrivatePthreadExtras to take advantage of native C function pointer support instead of hacking it up through a stub C++ library. Swift SVN r27604
21 lines
682 B
CMake
21 lines
682 B
CMake
set(swift_private_pthread_extras_module_depends)
|
|
|
|
if(SWIFT_HOST_VARIANT MATCHES "${SWIFT_DARWIN_VARIANTS}")
|
|
list(APPEND swift_private_pthread_extras_module_depends
|
|
Darwin)
|
|
elseif(SWIFT_HOST_VARIANT STREQUAL "linux")
|
|
list(APPEND swift_private_pthread_extras_module_depends
|
|
Glibc)
|
|
endif()
|
|
|
|
add_swift_library(swiftSwiftPrivatePthreadExtras SHARED IS_STDLIB
|
|
# This file should be listed the first. Module name is inferred from the
|
|
# filename.
|
|
SwiftPrivatePthreadExtras.swift
|
|
PthreadBarriers.swift
|
|
|
|
SWIFT_MODULE_DEPENDS ${swift_private_pthread_extras_module_depends}
|
|
SWIFT_COMPILE_FLAGS -Xfrontend -sil-serialize-all
|
|
INSTALL_IN_COMPONENT stdlib-experimental)
|
|
|