mirror of
https://github.com/apple/swift-asn1
synced 2026-11-22 04:10:39 +00:00
Drop Swift 5.10 (#108)
### Motivation: Swift 5.10 is no longer supported, we should bump the swift-tools version. ### Modifications: * Update Swift tools version to 6.0 * Add `strictConcurrencyDevelopment` mode ### Result: Code reflects our support window.
This commit is contained in:
1 parent
348b60eb35
commit
40d25bbb2f
1 file changed
+19
-8
+19
-8
@@ -1,9 +1,9 @@
|
||||
// swift-tools-version:5.10
|
||||
// swift-tools-version:6.0
|
||||
//===----------------------------------------------------------------------===//
|
||||
//
|
||||
// This source file is part of the SwiftASN1 open source project
|
||||
//
|
||||
// Copyright (c) 2019-2023 Apple Inc. and the SwiftASN1 project authors
|
||||
// Copyright (c) 2019-2025 Apple Inc. and the SwiftASN1 project authors
|
||||
// Licensed under Apache License v2.0
|
||||
//
|
||||
// See LICENSE.txt for license information
|
||||
@@ -16,10 +16,21 @@
|
||||
import PackageDescription
|
||||
import class Foundation.ProcessInfo
|
||||
|
||||
let upcomingFeatureSwiftSettings: [SwiftSetting] = [
|
||||
.enableUpcomingFeature("ExistentialAny"),
|
||||
.enableUpcomingFeature("StrictConcurrency"),
|
||||
]
|
||||
let strictConcurrencyDevelopment = false
|
||||
|
||||
let strictConcurrencySettings: [SwiftSetting] = {
|
||||
var initialSettings: [SwiftSetting] = [
|
||||
.enableUpcomingFeature("ExistentialAny")
|
||||
]
|
||||
|
||||
if strictConcurrencyDevelopment {
|
||||
// -warnings-as-errors here is a workaround so that IDE-based development can
|
||||
// get tripped up on -require-explicit-sendable.
|
||||
initialSettings.append(.unsafeFlags(["-require-explicit-sendable", "-warnings-as-errors"]))
|
||||
}
|
||||
|
||||
return initialSettings
|
||||
}()
|
||||
|
||||
let package = Package(
|
||||
name: "swift-asn1",
|
||||
@@ -30,12 +41,12 @@ let package = Package(
|
||||
.target(
|
||||
name: "SwiftASN1",
|
||||
exclude: ["CMakeLists.txt"],
|
||||
swiftSettings: upcomingFeatureSwiftSettings
|
||||
swiftSettings: strictConcurrencySettings
|
||||
),
|
||||
.testTarget(
|
||||
name: "SwiftASN1Tests",
|
||||
dependencies: ["SwiftASN1"],
|
||||
swiftSettings: upcomingFeatureSwiftSettings
|
||||
swiftSettings: strictConcurrencySettings
|
||||
),
|
||||
]
|
||||
)
|
||||
|
||||
Reference in new issue
Block a user