Skip to content

Commit

Permalink
Turn on strict concurrency.
Browse files Browse the repository at this point in the history
  • Loading branch information
mbrandonw committed Apr 11, 2024
1 parent 520c458 commit 2d84ee7
Showing 1 changed file with 16 additions and 13 deletions.
29 changes: 16 additions & 13 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -27,35 +27,38 @@ let package = Package(
"PerceptionMacros",
.product(name: "OrderedCollections", package: "swift-collections"),
.product(name: "XCTestDynamicOverlay", package: "xctest-dynamic-overlay"),
],
swiftSettings: [
.enableExperimentalFeature("StrictConcurrency")
]
),
.testTarget(
name: "PerceptionTests",
dependencies: ["Perception"],
swiftSettings: [
.enableExperimentalFeature("StrictConcurrency")
]
),
.testTarget(name: "PerceptionTests", dependencies: ["Perception"]),

.macro(
name: "PerceptionMacros",
dependencies: [
.product(name: "SwiftSyntaxMacros", package: "swift-syntax"),
.product(name: "SwiftCompilerPlugin", package: "swift-syntax"),
],
swiftSettings: [
.enableExperimentalFeature("StrictConcurrency")
]
),
.testTarget(
name: "PerceptionMacrosTests",
dependencies: [
"PerceptionMacros",
.product(name: "MacroTesting", package: "swift-macro-testing"),
],
swiftSettings: [
.enableExperimentalFeature("StrictConcurrency")
]
),
]
)

//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",
// ])
// )
//}

0 comments on commit 2d84ee7

Please sign in to comment.