Skip to content

Commit

Permalink
Merge branch 'djbe-bugfix/xcode-12' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
tid-kijyun committed Oct 11, 2020
2 parents 73db627 + 5a18c7b commit ac49cf7
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion 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 Expand Up @@ -33,7 +40,7 @@ let package = Package(
),
.target(
name: "Kanna",
dependencies: ["libxml2"],
dependencies: dependencies,
path: "Sources",
exclude: [
"Sources/Info.plist",
Expand Down

0 comments on commit ac49cf7

Please sign in to comment.