Skip to content

Commit

Permalink
Turn on strict concurrency. (#57)
Browse files Browse the repository at this point in the history
* Turn on strict concurrency.

* testing something

* testing something

* wip
  • Loading branch information
mbrandonw authored Apr 15, 2024
1 parent 520c458 commit 866eae4
Showing 1 changed file with 10 additions and 12 deletions.
22 changes: 10 additions & 12 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,10 @@ let package = Package(
.product(name: "XCTestDynamicOverlay", package: "xctest-dynamic-overlay"),
]
),
.testTarget(name: "PerceptionTests", dependencies: ["Perception"]),
.testTarget(
name: "PerceptionTests",
dependencies: ["Perception"]
),

.macro(
name: "PerceptionMacros",
Expand All @@ -48,14 +51,9 @@ let package = Package(
]
)

//for target in package.targets where target.type != .system {
// target.swiftSettings = target.swiftSettings ?? []
// target.swiftSettings?.append(
// .unsafeFlags([
// "-c", "release",
// "-emit-module-interface", "-enable-library-evolution",
// "-Xfrontend", "-warn-concurrency",
// "-Xfrontend", "-enable-actor-data-race-checks",
// ])
// )
//}
for target in package.targets where target.type != .system {
target.swiftSettings = target.swiftSettings ?? []
target.swiftSettings?.append(
.enableExperimentalFeature("StrictConcurrency")
)
}

0 comments on commit 866eae4

Please sign in to comment.