From 9a561e6e241619a47840c94307554e900c1a8209 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mateusz=20Ba=CC=A8k?= Date: Sat, 14 Oct 2023 10:43:43 +0200 Subject: [PATCH] Create `SwiftSyntax510` module for version indication --- Package.swift | 7 ++++++- Sources/SwiftSyntax510/Empty.swift | 3 +++ 2 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 Sources/SwiftSyntax510/Empty.swift diff --git a/Package.swift b/Package.swift index 0249148fff1..6f4aad3f299 100644 --- a/Package.swift +++ b/Package.swift @@ -172,7 +172,7 @@ let package = Package( .target( name: "SwiftSyntax", - dependencies: ["SwiftSyntax509"], + dependencies: ["SwiftSyntax509", "SwiftSyntax510"], exclude: ["CMakeLists.txt"], swiftSettings: swiftSyntaxSwiftSettings ), @@ -190,6 +190,11 @@ let package = Package( dependencies: [] ), + .target( + name: "SwiftSyntax510", + dependencies: [] + ), + // MARK: SwiftSyntaxBuilder .target( diff --git a/Sources/SwiftSyntax510/Empty.swift b/Sources/SwiftSyntax510/Empty.swift new file mode 100644 index 00000000000..7008f58470d --- /dev/null +++ b/Sources/SwiftSyntax510/Empty.swift @@ -0,0 +1,3 @@ +// The SwiftSyntax510 module is intentionally empty. +// It serves as an indicator which version of swift-syntax a package is building against. +// See the 'Macro Versioning.md' document for more details.