Skip to content

Commit

Permalink
Remove 5.9 code paths
Browse files Browse the repository at this point in the history
  • Loading branch information
STREGA committed Oct 1, 2023
1 parent d1324dc commit bdb0177
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 15 deletions.
4 changes: 1 addition & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
# 0.20.0 (30 Sep 2023)

This release adds a temporary fix for macOS 14 Sonoma + Xcode 15.
- On macOS Sonoma the default toolchain is a 5.9-SNAPSHOT.
- On other hosts the default toolchain continues to be 5.8-RELEASE.
This release adds SwiftWasm 5.9 toolchain support.

# 0.19.1 (9 May 2023)

Expand Down
2 changes: 1 addition & 1 deletion Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ let package = Package(
),
.package(
url: "https://github.com/apple/swift-argument-parser.git",
.upToNextMinor(from: "1.2.2")
.upToNextMinor(from: "1.2.3")
),
.package(url: "https://github.com/apple/swift-nio.git", from: "2.34.0"),
.package(
Expand Down
6 changes: 0 additions & 6 deletions Sources/CartonHelpers/Async.swift
Original file line number Diff line number Diff line change
Expand Up @@ -29,17 +29,11 @@ extension Sequence {
}

/// A type that can be executed as part of a nested tree of commands.
#if swift(<5.9)
public protocol AsyncParsableCommand: ParsableCommand {
mutating func run() async throws
}
#else
extension AsyncParsableCommand {
public mutating func run() throws {
throw CleanExit.helpRequest(self)
}
}
#endif

public protocol AsyncMain {
associatedtype Command: ParsableCommand
Expand Down
5 changes: 0 additions & 5 deletions Sources/SwiftToolchain/Toolchain.swift
Original file line number Diff line number Diff line change
Expand Up @@ -212,13 +212,8 @@ public final class Toolchain {
switch target.type {
case .regular, .executable:
return RelativePath("Sources").appending(component: target.name).pathString
#if swift(>=5.9)
case .test, .system, .binary, .macro, .plugin:
return nil
#else
case .test, .system, .binary, .plugin:
return nil
#endif
}
}
return path
Expand Down

0 comments on commit bdb0177

Please sign in to comment.