From 7f2cebd4dfd444adc8e19ffbdc16485d8725042e Mon Sep 17 00:00:00 2001 From: Misty De Meo Date: Tue, 5 Jun 2018 14:53:24 -0700 Subject: [PATCH] Xcode: fix version detection with unknown clang --- Library/Homebrew/os/mac/xcode.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/Library/Homebrew/os/mac/xcode.rb b/Library/Homebrew/os/mac/xcode.rb index c8a1c40440..645b7351f0 100644 --- a/Library/Homebrew/os/mac/xcode.rb +++ b/Library/Homebrew/os/mac/xcode.rb @@ -147,6 +147,7 @@ module OS end def detect_version_from_clang_version + return "dunno" if DevelopmentTools.clang_version.null? # This logic provides a fake Xcode version based on the # installed CLT version. This is useful as they are packaged # simultaneously so workarounds need to apply to both based on their