Skip to content

Commit 9c01475

Browse files
committed
Update swift-syntax for Swift 6.1
1 parent 9a0532d commit 9c01475

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

Package.swift

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,13 +156,19 @@ if generateCode {
156156
}
157157

158158
if enableMacros {
159+
let version: Version
160+
#if swift(>=6.1)
161+
version = "601.0.1"
162+
#else
163+
version = "600.0.1"
164+
#endif
159165
package.targets[0].swiftSettings = [
160166
.define("SWIFTPM_ENABLE_MACROS")
161167
]
162168
package.dependencies += [
163169
.package(
164170
url: "https://github.com/swiftlang/swift-syntax.git",
165-
from: "600.0.1"
171+
from: version
166172
)
167173
]
168174
package.targets += [

0 commit comments

Comments
 (0)