Files
swift-mirror/stdlib/private/SwiftPrivatePthreadExtras/CMakeLists.txt
Joe Groff b812db06e4 Turn on C function pointer imports by default.
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
2015-04-22 21:11:31 +00:00

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)