Skip to content

Commit dacff54

Browse files
require Swift 6.1; add Join package trait
1 parent d82b63f commit dacff54

File tree

3 files changed

+10
-3
lines changed

3 files changed

+10
-3
lines changed

Package.swift

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// swift-tools-version:6.0
1+
// swift-tools-version:6.1
22

33
import PackageDescription
44

@@ -10,6 +10,13 @@ let package = Package(
1010
targets: ["VariableLengthArray"]
1111
)
1212
],
13+
traits: [
14+
.default(enabledTraits: ["Join"]),
15+
.trait(
16+
name: "Join",
17+
description: "Enables functionality to join Variable Length Arrays."
18+
)
19+
],
1320
targets: [
1421
.target(
1522
name: "VariableLengthArray"

Sources/VariableLengthArray/Joined.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

2-
#if compiler(>=6.2)
2+
#if Join && compiler(>=6.2)
33

44
extension VLArray {
55
@inlinable

Tests/swift-variablelengtharrayTests/VariableLengthArrayTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ struct VariableLengthArrayTests {
8686
) {
8787
}
8888

89-
#if compiler(>=6.2)
89+
#if Join && compiler(>=6.2)
9090
@Test
9191
func joinedVLArrayVL() {
9292
VLArray<UInt8>.create(amount: 5, default: 0) { first in

0 commit comments

Comments
 (0)