Skip to content

Commit

Permalink
Conditionally include 'swift-nio-zlib-support' dependency to avoid wa…
Browse files Browse the repository at this point in the history
…rning on macOS
  • Loading branch information
varahash committed Jul 12, 2020
1 parent 5fbeab4 commit fe5769f
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,13 @@ let package = Package(
products: [
.library(name: "Starscream", targets: ["Starscream"])
],
dependencies: [
.package(url: "https://github.com/apple/swift-nio-zlib-support.git", from: "1.0.0")
],
dependencies: [],
targets: [
.target(name: "Starscream",
path: "Sources")
]
)

#if os(Linux)
package.dependencies.append(.package(url: "https://github.com/apple/swift-nio-zlib-support.git", from: "1.0.0"))
#endif

0 comments on commit fe5769f

Please sign in to comment.