mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
The standard library has grown significantly, and we need a new
directory structure that clearly reflects the role of the APIs, and
allows future growth.
See stdlib/{public,internal,private}/README.txt for more information.
Swift SVN r25876
21 lines
599 B
CMake
21 lines
599 B
CMake
set(swift_private_private_link_libraries)
|
|
if(SWIFT_HOST_VARIANT STREQUAL "linux")
|
|
# Needed for arc4random
|
|
find_package(BSD REQUIRED)
|
|
list(APPEND swift_private_private_link_libraries
|
|
${BSD_LIBRARIES})
|
|
endif()
|
|
|
|
add_swift_library(swiftSwiftPrivate SHARED IS_STDLIB
|
|
# This file should be listed the first. Module name is inferred from the
|
|
# filename.
|
|
SwiftPrivate.swift
|
|
IO.swift
|
|
PRNG.swift
|
|
ShardedAtomicCounter.swift
|
|
|
|
SWIFT_COMPILE_FLAGS -Xfrontend -sil-serialize-all
|
|
PRIVATE_LINK_LIBRARIES ${swift_private_private_link_libraries}
|
|
INSTALL_IN_COMPONENT stdlib-experimental)
|
|
|