Remove 5.9 code paths
This commit is contained in:
parent
6726c74427
commit
f1d736efb1
|
@ -1,8 +1,6 @@
|
||||||
# 0.20.0 (30 Sep 2023)
|
# 0.20.0 (30 Sep 2023)
|
||||||
|
|
||||||
This release adds a temporary fix for macOS 14 Sonoma + Xcode 15.
|
This release adds SwiftWasm 5.9 toolchain support.
|
||||||
- On macOS Sonoma the default toolchain is a 5.9-SNAPSHOT.
|
|
||||||
- On other hosts the default toolchain continues to be 5.8-RELEASE.
|
|
||||||
|
|
||||||
# 0.19.1 (9 May 2023)
|
# 0.19.1 (9 May 2023)
|
||||||
|
|
||||||
|
|
|
@ -21,7 +21,7 @@ let package = Package(
|
||||||
),
|
),
|
||||||
.package(
|
.package(
|
||||||
url: "https://github.com/apple/swift-argument-parser.git",
|
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(url: "https://github.com/apple/swift-nio.git", from: "2.34.0"),
|
||||||
.package(
|
.package(
|
||||||
|
|
|
@ -29,17 +29,11 @@ extension Sequence {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// A type that can be executed as part of a nested tree of commands.
|
/// 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 {
|
extension AsyncParsableCommand {
|
||||||
public mutating func run() throws {
|
public mutating func run() throws {
|
||||||
throw CleanExit.helpRequest(self)
|
throw CleanExit.helpRequest(self)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
|
|
||||||
public protocol AsyncMain {
|
public protocol AsyncMain {
|
||||||
associatedtype Command: ParsableCommand
|
associatedtype Command: ParsableCommand
|
||||||
|
|
|
@ -212,13 +212,8 @@ public final class Toolchain {
|
||||||
switch target.type {
|
switch target.type {
|
||||||
case .regular, .executable:
|
case .regular, .executable:
|
||||||
return RelativePath("Sources").appending(component: target.name).pathString
|
return RelativePath("Sources").appending(component: target.name).pathString
|
||||||
#if swift(>=5.9)
|
|
||||||
case .test, .system, .binary, .macro, .plugin:
|
case .test, .system, .binary, .macro, .plugin:
|
||||||
return nil
|
return nil
|
||||||
#else
|
|
||||||
case .test, .system, .binary, .plugin:
|
|
||||||
return nil
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return path
|
return path
|
||||||
|
|
Loading…
Reference in New Issue