Skip to content

Commit

Permalink
Adds targeted strict concurrency setting (#295)
Browse files Browse the repository at this point in the history
Bumps package file to 5.9 swift tools
  • Loading branch information
mjohnson12 authored Aug 15, 2024
1 parent 249a89c commit 7d1fd1c
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion Package.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// swift-tools-version:5.7
// swift-tools-version:5.9
// The swift-tools-version declares the minimum version of Swift required to build this package.

import PackageDescription
Expand Down Expand Up @@ -234,3 +234,9 @@ extension PackageDescription.Product {
.library(name: name, targets: [name])
}
}

for target in package.targets {
var settings = target.swiftSettings ?? []
settings.append(.enableExperimentalFeature("StrictConcurrency=targeted"))
target.swiftSettings = settings
}

0 comments on commit 7d1fd1c

Please sign in to comment.