Files
swift-mirror/stdlib/public/Synchronization/CMakeLists.txt
Eric Miotto 28e2f079b5 CMake: on Darwin be explicit about inclusion in the dyld shared cache (#70856)
This entails passing a linker flags to Apple linkers when the standard
library is not meant for inclusion in such cache.

For this to have effect on every library, propagate link flags when
building _Concurrency and Observation.

This is needed for Apple internal configurations.

Addresses rdar://120653968
2024-01-29 09:42:38 -08:00

44 lines
1.2 KiB
CMake

#===--- CMakeLists.txt - Synchronization library ---------------------------===#
#
# This source file is part of the Swift.org open source project
#
# Copyright (c) 2023 Apple Inc. and the Swift project authors
# Licensed under Apache License v2.0 with Runtime Library Exception
#
# See https://swift.org/LICENSE.txt for license information
# See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
#
#===----------------------------------------------------------------------===#
add_swift_target_library(swiftSynchronization ${SWIFT_STDLIB_LIBRARY_BUILD_TYPES} IS_STDLIB
# List of files here:
Atomic.swift
AtomicBool.swift
AtomicFloats.swift
AtomicLazyReference.swift
AtomicMemoryOrderings.swift
AtomicOptional.swift
AtomicPointers.swift
AtomicRepresentable.swift
WordPair.swift
GYB_SOURCES
AtomicIntegers.swift.gyb
AtomicStorage.swift.gyb
SWIFT_COMPILE_FLAGS
${SWIFT_STANDARD_LIBRARY_SWIFT_FLAGS}
"-enable-builtin-module"
"-enable-experimental-feature" "RawLayout"
"-enable-experimental-feature" "StaticExclusiveOnly"
LINK_FLAGS
"${SWIFT_RUNTIME_SWIFT_LINK_FLAGS}"
INSTALL_IN_COMPONENT
stdlib
MACCATALYST_BUILD_FLAVOR
"zippered"
)