Skip to content

Commit

Permalink
Merge pull request #82 from Actomaton/comment-out-unsafeFlags
Browse files Browse the repository at this point in the history
Update Package.swift to comment-out `unsafeFlags`
  • Loading branch information
inamiy committed Sep 23, 2023
2 parents fe89e14 + a1c7148 commit e51e5ea
Showing 1 changed file with 17 additions and 46 deletions.
63 changes: 17 additions & 46 deletions Package.swift
Expand Up @@ -23,33 +23,18 @@ let package = Package(
targets: [
.target(
name: "Actomaton",
dependencies: [.product(name: "CasePaths", package: "swift-case-paths")],
swiftSettings: [
.unsafeFlags([
"-Xfrontend", "-strict-concurrency=complete",
])
]
dependencies: [.product(name: "CasePaths", package: "swift-case-paths")]
),
.target(
name: "ActomatonStore",
dependencies: [
"Actomaton"
],
swiftSettings: [
.unsafeFlags([
"-Xfrontend", "-strict-concurrency=complete",
])
]
),
.target(
name: "ActomatonUI",
dependencies: [
"Actomaton", "ActomatonDebugging"
],
swiftSettings: [
.unsafeFlags([
"-Xfrontend", "-strict-concurrency=complete",
])
]
),
.target(
Expand All @@ -61,48 +46,34 @@ let package = Package(
.target(
name: "TestFixtures",
dependencies: ["Actomaton"],
path: "./Tests/TestFixtures",
swiftSettings: [
.unsafeFlags([
"-Xfrontend", "-strict-concurrency=complete",
])
]
path: "./Tests/TestFixtures"
),
.testTarget(
name: "ActomatonTests",
dependencies: ["Actomaton", "TestFixtures"],
swiftSettings: [
.unsafeFlags([
"-Xfrontend", "-strict-concurrency=complete",
])
]
dependencies: ["Actomaton", "TestFixtures"]
),
.testTarget(
name: "ActomatonStoreTests",
dependencies: ["ActomatonStore", "TestFixtures"],
swiftSettings: [
.unsafeFlags([
"-Xfrontend", "-strict-concurrency=complete",
])
]
dependencies: ["ActomatonStore", "TestFixtures"]
),
.testTarget(
name: "ActomatonUITests",
dependencies: ["ActomatonUI", "TestFixtures"],
swiftSettings: [
.unsafeFlags([
"-Xfrontend", "-strict-concurrency=complete",
])
]
dependencies: ["ActomatonUI", "TestFixtures"]
),
.testTarget(
name: "ReadMeTests",
dependencies: ["ActomatonStore", "ActomatonDebugging"],
swiftSettings: [
.unsafeFlags([
"-Xfrontend", "-strict-concurrency=complete",
])
]
dependencies: ["ActomatonStore", "ActomatonDebugging"]
)
]
)

// Comment-Out: Enable this `unsafeFlags` in local development.
//
//for target in package.targets where target.type != .system {
// target.swiftSettings = target.swiftSettings ?? []
// target.swiftSettings?.append(
// .unsafeFlags([
// "-Xfrontend", "-strict-concurrency=complete",
// ])
// )
//}

0 comments on commit e51e5ea

Please sign in to comment.