Skip to content

Commit

Permalink
add Swift 5.6 case in swiftVersion property (#413)
Browse files Browse the repository at this point in the history
  • Loading branch information
atierian committed Mar 16, 2022
1 parent 0579b19 commit 5c76b8f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Packages/ClientRuntime/Sources/Util/SwiftVersion.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,10 @@
//

public var swiftVersion: String {
#if swift(>=5.6)
#if swift(>=5.7)
#error("Cannot use a version of Swift greater than available. Please create a Github issue for us to add support for the version of Swift you want to use.")
#elseif swift(>=5.6)
return "5.6"
#elseif swift(>=5.5)
return "5.5"
#elseif swift(>=5.4)
Expand Down

0 comments on commit 5c76b8f

Please sign in to comment.