Skip to content

Commit c5d0a06

Browse files
committed
wip
1 parent cda4775 commit c5d0a06

File tree

2 files changed

+17
-109
lines changed

2 files changed

+17
-109
lines changed

Package.swift

Lines changed: 17 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// swift-tools-version:5.9
1+
// swift-tools-version:6.0
22

33
import CompilerPluginSupport
44
import PackageDescription
@@ -77,16 +77,21 @@ let package = Package(
7777
.product(name: "MacroTesting", package: "swift-macro-testing"),
7878
]
7979
),
80-
]
80+
],
81+
swiftLanguageModes: [.v6]
8182
)
8283

83-
#if compiler(>=6)
84-
for target in package.targets where target.type != .system && target.type != .test {
85-
target.swiftSettings = target.swiftSettings ?? []
86-
target.swiftSettings?.append(contentsOf: [
87-
.enableExperimentalFeature("StrictConcurrency"),
88-
.enableUpcomingFeature("ExistentialAny"),
89-
.enableUpcomingFeature("InferSendableFromCaptures"),
90-
])
91-
}
92-
#endif
84+
for target in package.targets {
85+
target.swiftSettings = target.swiftSettings ?? []
86+
target.swiftSettings?.append(contentsOf: [
87+
.enableUpcomingFeature("ExistentialAny")
88+
])
89+
}
90+
91+
for target in package.targets where target.type == .system || target.type == .test {
92+
target.swiftSettings?.append(contentsOf: [
93+
.swiftLanguageMode(.v5),
94+
.enableExperimentalFeature("StrictConcurrency"),
95+
.enableUpcomingFeature("InferSendableFromCaptures"),
96+
])
97+
}

[email protected]

Lines changed: 0 additions & 97 deletions
This file was deleted.

0 commit comments

Comments
 (0)