mirror of
https://github.com/apple/swift-algorithms
synced 2026-11-22 04:10:39 +00:00
Along with converting to typed errors, this also bumps the swiftlang version in Package.swift to 6.0 (to support typed errors).
44 lines
1.3 KiB
Swift
44 lines
1.3 KiB
Swift
// swift-tools-version:6.0
|
|
//===----------------------------------------------------------------------===//
|
|
//
|
|
// This source file is part of the Swift Algorithms open source project
|
|
//
|
|
// Copyright (c) 2020 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
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
import PackageDescription
|
|
|
|
let availabilityDefinition = PackageDescription.SwiftSetting.unsafeFlags([
|
|
"-Xfrontend",
|
|
"-define-availability",
|
|
"-Xfrontend",
|
|
"SwiftStdlib 5.7:macOS 13.0, iOS 16.0, watchOS 9.0, tvOS 16.0",
|
|
])
|
|
|
|
let package = Package(
|
|
name: "swift-algorithms",
|
|
products: [
|
|
.library(
|
|
name: "Algorithms",
|
|
targets: ["Algorithms"]),
|
|
],
|
|
dependencies: [
|
|
.package(url: "https://github.com/apple/swift-numerics.git", from: "1.0.0"),
|
|
],
|
|
targets: [
|
|
.target(
|
|
name: "Algorithms",
|
|
dependencies: [
|
|
.product(name: "RealModule", package: "swift-numerics"),
|
|
],
|
|
swiftSettings: [availabilityDefinition]),
|
|
.testTarget(
|
|
name: "SwiftAlgorithmsTests",
|
|
dependencies: ["Algorithms"]),
|
|
]
|
|
)
|