Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
David Brunow committed Apr 15, 2024
1 parent 177f9ab commit 60fee3b
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions 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

import Foundation
import PackageDescription
Expand Down Expand Up @@ -81,16 +81,16 @@ let package = Package(
]
)

//let swiftSettings: [SwiftSetting] = [
// // -enable-bare-slash-regex becomes
// .enableUpcomingFeature("BareSlashRegexLiterals"),
// // -warn-concurrency becomes
// .enableUpcomingFeature("StrictConcurrency"),
// .unsafeFlags(["-enable-actor-data-race-checks"],
// .when(configuration: .debug)),
//]
//
//for target in package.targets {
// target.swiftSettings = target.swiftSettings ?? []
// target.swiftSettings?.append(contentsOf: swiftSettings)
//}
let swiftSettings: [SwiftSetting] = [
// -enable-bare-slash-regex becomes
.enableUpcomingFeature("BareSlashRegexLiterals"),
// -warn-concurrency becomes
.enableUpcomingFeature("StrictConcurrency"),
.unsafeFlags(["-enable-actor-data-race-checks"],
.when(configuration: .debug)),
]

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

0 comments on commit 60fee3b

Please sign in to comment.