swift-format: update patch (#119766)

master
Dave Abrahams 2023-01-13 16:09:40 -08:00 committed by GitHub
parent 9cc1994aae
commit 603fdcfc81
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 4 deletions

View File

@ -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"]