From 3c29360f4acfeb31a0b4f7313b3c099e3f501e5b Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Wed, 13 Dec 2023 17:37:48 +0000 Subject: [PATCH] swift: fix MacOS references. Needed after https://github.com/Homebrew/brew/pull/16306. --- Formula/s/swift.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Formula/s/swift.rb b/Formula/s/swift.rb index 9e8b68c432c6..f78d7c4ac855 100644 --- a/Formula/s/swift.rb +++ b/Formula/s/swift.rb @@ -450,7 +450,7 @@ def caveats module_cache.mkdir # Temporary hack while macOS 13 SDK prebuilding is disabled. - if MacOS.version == :ventura + if OS.mac? && MacOS.version == :ventura ENV.remove_macosxsdk ENV["SDKROOT"] = "/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk" end