Skip to content

Commit d61ba4c

Browse files
authored
Update availability for the 5.8 release (#680)
1 parent b4b4315 commit d61ba4c

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

Package.swift

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,11 @@ let availabilityDefinition = PackageDescription.SwiftSetting.unsafeFlags([
1111
"-Xfrontend",
1212
"-define-availability",
1313
"-Xfrontend",
14-
"SwiftStdlib 5.8:macOS 9999, iOS 9999, watchOS 9999, tvOS 9999",
14+
"SwiftStdlib 5.8:macOS 13.3, iOS 16.4, watchOS 9.4, tvOS 16.4",
15+
"-Xfrontend",
16+
"-define-availability",
17+
"-Xfrontend",
18+
"SwiftStdlib 5.9:macOS 9999, iOS 9999, watchOS 9999, tvOS 9999",
1519
])
1620

1721
/// Swift settings for building a private stdlib-like module that is to be used
@@ -128,7 +132,8 @@ let package = Package(
128132
.product(name: "ArgumentParser", package: "swift-argument-parser"),
129133
"_RegexParser",
130134
"_StringProcessing"
131-
]),
135+
],
136+
swiftSettings: [availabilityDefinition]),
132137
.executableTarget(
133138
name: "RegexBenchmark",
134139
dependencies: [

Sources/RegexTester/RegexTester.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import _RegexParser
1414
import _StringProcessing
1515

1616
@main
17-
@available(macOS 9999, *)
17+
@available(SwiftStdlib 5.8, *)
1818
struct RegexTester: ParsableCommand {
1919
typealias MatchFunctionType = (String) throws -> Regex<AnyRegexOutput>.Match?
2020

0 commit comments

Comments
 (0)