mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Commit for CMake and build scripts to recognize OpenBSD. To keep this commit relatively short, this just deals with the rather simple and uncontroversial changes to the build system. Note that OpenBSD calls "x86_64" as "amd64", Since the Swift stdlib will be put in a subdirectory named after ARCH, to ensure the standard library is properly found later, we use the native architecture name for OpenBSD in the build system rather than trying to deal with the difference the other way around.
24 lines
960 B
CMake
24 lines
960 B
CMake
add_swift_target_library(swiftSwiftPrivateThreadExtras ${SWIFT_STDLIB_LIBRARY_BUILD_TYPES} IS_STDLIB
|
|
# This file should be listed the first. Module name is inferred from the
|
|
# filename.
|
|
SwiftPrivateThreadExtras.swift
|
|
ThreadBarriers.swift
|
|
|
|
"${SWIFT_SOURCE_DIR}/stdlib/linker-support/magic-symbols-for-install-name.c"
|
|
|
|
SWIFT_MODULE_DEPENDS_IOS Darwin
|
|
SWIFT_MODULE_DEPENDS_OSX Darwin
|
|
SWIFT_MODULE_DEPENDS_TVOS Darwin
|
|
SWIFT_MODULE_DEPENDS_WATCHOS Darwin
|
|
SWIFT_MODULE_DEPENDS_LINUX Glibc
|
|
SWIFT_MODULE_DEPENDS_FREEBSD Glibc
|
|
SWIFT_MODULE_DEPENDS_OPENBSD Glibc
|
|
SWIFT_MODULE_DEPENDS_CYGWIN Glibc
|
|
SWIFT_MODULE_DEPENDS_HAIKU Glibc
|
|
SWIFT_MODULE_DEPENDS_WINDOWS MSVCRT WinSDK
|
|
SWIFT_COMPILE_FLAGS ${SWIFT_STANDARD_LIBRARY_SWIFT_FLAGS}
|
|
TARGET_SDKS ALL_APPLE_PLATFORMS CYGWIN FREEBSD OPENBSD HAIKU LINUX WINDOWS ANDROID
|
|
INSTALL_IN_COMPONENT stdlib-experimental
|
|
DARWIN_INSTALL_NAME_DIR "${SWIFT_DARWIN_STDLIB_PRIVATE_INSTALL_NAME_DIR}")
|
|
|