Skip to content

Commit

Permalink
Completely exclude the binary target from the Linux build (#5585)
Browse files Browse the repository at this point in the history
  • Loading branch information
SimplyDanny committed May 16, 2024
1 parent 161391d commit de66fea
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -143,11 +143,6 @@ let package = Package(
"SwiftLintTestHelpers"
]
),
.binaryTarget(
name: "SwiftLintBinary",
url: "https://github.com/realm/SwiftLint/releases/download/0.55.0/SwiftLintBinary-macos.artifactbundle.zip",
checksum: "0a689bf8f851e4ab06bfce1bf5a01840984473ef720a63916611664e442499d6"
),
.macro(
name: "SwiftLintCoreMacros",
dependencies: [
Expand All @@ -167,3 +162,13 @@ let package = Package(
),
]
)

#if os(macOS)
package.targets.append(
.binaryTarget(
name: "SwiftLintBinary",
url: "https://github.com/realm/SwiftLint/releases/download/0.55.0/SwiftLintBinary-macos.artifactbundle.zip",
checksum: "0a689bf8f851e4ab06bfce1bf5a01840984473ef720a63916611664e442499d6"
)
)
#endif

0 comments on commit de66fea

Please sign in to comment.