mirror of
https://github.com/apple/swift-collections
synced 2026-11-24 04:27:53 +00:00
* [utils] Add utility for shuffling sources to help reproduce MergeModules issues * [Deque] Collapse Sequence/Collection conformances into a single file The MergeModules phase in the compiler is broken: it isn’t always able to correctly handle circular dependencies across source files, like the ones that keep organically popping up with Sequence/Collection conformances that are defined in separate files. Such dependencies sometimes triggers a compiler crash, depending on some (unknown) environmental parameters. Trying to manually find and eliminate these circular dependencies has not proved productive. Instead, roll all Collection conformances into a single, huge source file. * [Deque] Update CMakeLists
35 lines
1023 B
CMake
35 lines
1023 B
CMake
#[[
|
|
This source file is part of the Swift Collections Open Source Project
|
|
|
|
Copyright (c) 2021 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
|
|
#]]
|
|
|
|
add_library(DequeModule
|
|
_DequeBuffer.swift
|
|
_DequeBufferHeader.swift
|
|
_DequeSlot.swift
|
|
_UnsafeWrappedBuffer.swift
|
|
Compatibility.swift
|
|
Deque._Storage.swift
|
|
Deque._UnsafeHandle.swift
|
|
Deque.swift
|
|
Deque+Codable.swift
|
|
Deque+Collection.swift
|
|
Deque+CustomDebugStringConvertible.swift
|
|
Deque+CustomReflectable.swift
|
|
Deque+CustomStringConvertible.swift
|
|
Deque+Equatable.swift
|
|
Deque+ExpressibleByArrayLiteral.swift
|
|
Deque+Extras.swift
|
|
Deque+Hashable.swift
|
|
Deque+Testing.swift
|
|
UnsafeMutableBufferPointer+Utilities.swift)
|
|
set_target_properties(DequeModule PROPERTIES
|
|
INTERFACE_INCLUDE_DIRECTORIES ${CMAKE_Swift_MODULE_DIRECTORY})
|
|
|
|
_install_target(DequeModule)
|
|
set_property(GLOBAL APPEND PROPERTY SWIFT_COLLECTIONS_EXPORTS DequeModule)
|