Skip to content

Commit 52943b6

Browse files
committed
swiftlint: revision bump for Swift 6 on Linux
1 parent 701e6bd commit 52943b6

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

Formula/s/swiftlint.rb

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ class Swiftlint < Formula
55
tag: "0.57.0",
66
revision: "168fb98ed1f3e343d703ecceaf518b6cf565207b"
77
license "MIT"
8+
revision 1
89
head "https://github.com/realm/SwiftLint.git", branch: "main"
910

1011
bottle do
@@ -20,10 +21,16 @@ class Swiftlint < Formula
2021
depends_on xcode: "8.0"
2122

2223
uses_from_macos "swift" => :build, since: :sonoma # swift 5.10+
23-
uses_from_macos "swift"
24+
uses_from_macos "curl"
25+
uses_from_macos "libxml2"
2426

2527
def install
26-
system "swift", "build", "--disable-sandbox", "--configuration", "release", "--product", "swiftlint"
28+
args = if OS.mac?
29+
["--disable-sandbox"]
30+
else
31+
["--static-swift-stdlib"]
32+
end
33+
system "swift", "build", *args, "--configuration", "release", "--product", "swiftlint"
2734
bin.install ".build/release/swiftlint"
2835
generate_completions_from_executable(bin/"swiftlint", "--generate-completion-script")
2936
end

0 commit comments

Comments
 (0)