Files
swift-collections/Sources/DequeModule/CMakeLists.txt
T
Karoy Lorentey fa45de1018 Work around another MergeModules crash (#62)
* [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
2021-07-08 17:02:00 -07:00

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)