swift-format: update patch (#119766)
parent
9cc1994aae
commit
603fdcfc81
|
@ -31,10 +31,9 @@ class SwiftFormat < Formula
|
|||
uses_from_macos "swift"
|
||||
|
||||
def install
|
||||
# Support current stable Swift.
|
||||
# Remove with Swift 5.7.1.
|
||||
inreplace "Package.swift", '.upToNextMinor(from: "0.50700.0")', '.exact("0.50700.0")' if OS.mac?
|
||||
|
||||
# Support Swift 5.7.
|
||||
# Remove when minimum supported Swift >= 5.7.1.
|
||||
inreplace "Package.swift", '.upToNextMinor(from: "0.50700.0")', '.exact("0.50700.0")' if OS.mac? && build.stable?
|
||||
# This can likely be removed with 0.50800.0
|
||||
swift_rpath = if OS.mac?
|
||||
["-Xlinker", "-rpath", "-Xlinker", "/Library/Developer/CommandLineTools/usr/lib/swift/macosx"]
|
||||
|
|
Loading…
Reference in New Issue