diff --git a/.github/workflows/publish_release.yml b/.github/workflows/publish_release.yml index 0a688e45677..fe9819c7861 100644 --- a/.github/workflows/publish_release.yml +++ b/.github/workflows/publish_release.yml @@ -14,7 +14,7 @@ on: required: true swift_syntax_version: type: string - default: 603.0.0 + default: 604.0.0 description: "swift-syntax version" # The version of swift-syntax to tag. If this is a prerelease, `-prerelease-` is added to this version. required: true diff --git a/BUILD.bazel b/BUILD.bazel index 04f792c3f41..a151388e211 100644 --- a/BUILD.bazel +++ b/BUILD.bazel @@ -223,6 +223,7 @@ swift_syntax_library( ":SwiftSyntax601", ":SwiftSyntax602", ":SwiftSyntax603", + ":SwiftSyntax604", ":_SwiftSyntaxCShims", ], ) @@ -269,6 +270,13 @@ swift_syntax_library( ], ) +swift_syntax_library( + name = "SwiftSyntax604", + srcs = glob(["Sources/VersionMarkerModules/SwiftSyntax604/**/*.swift"]), + deps = [ + ], +) + swift_syntax_library( name = "SwiftSyntaxBuilder", deps = [ diff --git a/Package.swift b/Package.swift index ba92d6854a7..494734a7a7a 100644 --- a/Package.swift +++ b/Package.swift @@ -231,7 +231,7 @@ let package = Package( name: "SwiftSyntax", dependencies: [ "_SwiftSyntaxCShims", "SwiftSyntax509", "SwiftSyntax510", "SwiftSyntax600", "SwiftSyntax601", "SwiftSyntax602", - "SwiftSyntax603", + "SwiftSyntax603", "SwiftSyntax604", ], exclude: ["CMakeLists.txt"], swiftSettings: swiftSyntaxSwiftSettings @@ -275,6 +275,11 @@ let package = Package( path: "Sources/VersionMarkerModules/SwiftSyntax603" ), + .target( + name: "SwiftSyntax604", + path: "Sources/VersionMarkerModules/SwiftSyntax604" + ), + // MARK: SwiftSyntaxBuilder .target( diff --git a/Sources/VersionMarkerModules/CMakeLists.txt b/Sources/VersionMarkerModules/CMakeLists.txt index 609f1d308d4..4812d3c1f4a 100644 --- a/Sources/VersionMarkerModules/CMakeLists.txt +++ b/Sources/VersionMarkerModules/CMakeLists.txt @@ -20,3 +20,5 @@ add_library(${SWIFTSYNTAX_TARGET_NAMESPACE}SwiftSyntax602 STATIC SwiftSyntax602/Empty.swift) add_library(${SWIFTSYNTAX_TARGET_NAMESPACE}SwiftSyntax603 STATIC SwiftSyntax603/Empty.swift) +add_library(${SWIFTSYNTAX_TARGET_NAMESPACE}SwiftSyntax604 STATIC + SwiftSyntax604/Empty.swift) diff --git a/Sources/VersionMarkerModules/SwiftSyntax604/Empty.swift b/Sources/VersionMarkerModules/SwiftSyntax604/Empty.swift new file mode 100644 index 00000000000..fa0fa80b4ed --- /dev/null +++ b/Sources/VersionMarkerModules/SwiftSyntax604/Empty.swift @@ -0,0 +1,15 @@ +//===----------------------------------------------------------------------===// +// +// This source file is part of the Swift.org open source project +// +// Copyright (c) 2014 - 2025 Apple Inc. and the Swift project authors +// Licensed under Apache License v2.0 with Runtime Library Exception +// +// See https://swift.org/LICENSE.txt for license information +// See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors +// +//===----------------------------------------------------------------------===// + +// The SwiftSyntax604 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.