Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit e0c24bc

Browse files
Remove #if swift(>=5.9) check in Package.swift (#27)
### Motivation In #26 we bumped the minimum tools version to Swift 5.9, but we left the `#if swift(>5.9)` compiler directive when enabling existential any by default. ### Modifications Remove #if swift(>=5.9) check in Package.swift ### Result No checking for Swift 5.9+, because that's now the default. ### Test Plan CI.
1 parent 8c6cc59 commit e0c24bc

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

‎Package.swift

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,11 @@ import Foundation
1616
import PackageDescription
1717

1818
// General Swift-settings for all targets.
19-
var swiftSettings: [SwiftSetting] = []
20-
21-
#if swift(>=5.9)
22-
swiftSettings.append(
19+
let swiftSettings: [SwiftSetting] = [
2320
// https://github.com/apple/swift-evolution/blob/main/proposals/0335-existential-any.md
2421
// Require `any` for existential types.
2522
.enableUpcomingFeature("ExistentialAny")
26-
)
27-
#endif
23+
]
2824

2925
let package = Package(
3026
name: "swift-openapi-async-http-client",

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /