Skip to content

Commit 68b044a

Browse files
committed
Benchmarks: Set deployment target to Swift 5.5-era Apple OSes
We can probably bump this further, but at the very least this allows the use of basic concurrency features.
1 parent 56f6c09 commit 68b044a

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

benchmark/Package.swift

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,10 +185,15 @@ targets += multiSourceLibraries.map { lib in
185185
// Top Level Definition
186186
//
187187

188-
let p = Package(
188+
var p = Package(
189189
name: "swiftbench",
190190
products: products,
191191
targets: targets,
192192
swiftLanguageVersions: [.v4],
193193
cxxLanguageStandard: .cxx20
194194
)
195+
196+
// Let's build for Swift 5.5-aligned runtimes.
197+
#if os(macOS) || os(iOS) || os(watchOS) || os(tvOS)
198+
p.platforms = [.macOS(.v12), .iOS(.v15), .watchOS(.v8), .tvOS(.v15)]
199+
#endif

0 commit comments

Comments
 (0)