diff --git a/Package.swift b/Package.swift index 00c3218..1e9579e 100644 --- a/Package.swift +++ b/Package.swift @@ -16,11 +16,15 @@ import Foundation import PackageDescription // General Swift-settings for all targets. -let swiftSettings: [SwiftSetting] = [ +var swiftSettings: [SwiftSetting] = [] + +#if swift(>=5.9) +swiftSettings.append( // https://github.com/apple/swift-evolution/blob/main/proposals/0335-existential-any.md // Require `any` for existential types. .enableUpcomingFeature("ExistentialAny") -] +) +#endif let package = Package( name: "swift-openapi-urlsession",