Skip to content

Commit

Permalink
Turn on concurrency checking all the time
Browse files Browse the repository at this point in the history
  • Loading branch information
mattmassicotte committed Oct 23, 2023
1 parent 8f29c0d commit 0e3bd97
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@

import PackageDescription

let settings: [SwiftSetting] = [
// .unsafeFlags(["-Xfrontend", "-strict-concurrency=complete"])
]

let package = Package(
name: "LanguageServerProtocol",
platforms: [.macOS(.v10_15), .iOS(.v13), .tvOS(.v13), .watchOS(.v6)],
Expand All @@ -20,11 +16,19 @@ let package = Package(
targets: [
.target(
name: "LanguageServerProtocol",
dependencies: ["JSONRPC"],
swiftSettings: settings),
dependencies: ["JSONRPC"]),
.testTarget(
name: "LanguageServerProtocolTests",
dependencies: ["LanguageServerProtocol"],
swiftSettings: settings),
dependencies: ["LanguageServerProtocol"]),
]
)

let swiftSettings: [SwiftSetting] = [
.enableExperimentalFeature("StrictConcurrency")
]

for target in package.targets {
var settings = target.swiftSettings ?? []
settings.append(contentsOf: swiftSettings)
target.swiftSettings = settings
}

0 comments on commit 0e3bd97

Please sign in to comment.