Skip to content

Commit

Permalink
Adapt Package.swift for Xcode 12
Browse files Browse the repository at this point in the history
  • Loading branch information
djbe committed Oct 11, 2020
1 parent 73db627 commit 216e39d
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@
// The swift-tools-version declares the minimum version of Swift required to build this package.
import PackageDescription

// Starting with Xcode 12, we don't need to depend on our own libxml2 target
#if swift(>=5.3) && !os(Linux)
let dependencies: [Target.Dependency] = []
#else
let dependencies: [Target.Dependency] = ["libxml2"]
#endif

#if swift(>=5.2) && !os(Linux)
let pkgConfig: String? = nil
#else
Expand Down

0 comments on commit 216e39d

Please sign in to comment.