From 3696180fd7f6286631108e553107aa6e32d13d4d Mon Sep 17 00:00:00 2001
From: Misty De Meo <mistydemeo@gmail.com>
Date: Wed, 11 Jul 2012 11:59:49 -0500
Subject: [PATCH] Update Xcode checks for 10.8

---
 Library/Homebrew/cmd/doctor.rb | 1 +
 Library/Homebrew/macos.rb      | 7 +++++--
 2 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/Library/Homebrew/cmd/doctor.rb b/Library/Homebrew/cmd/doctor.rb
index cd16d0ba35..6e9796a70f 100644
--- a/Library/Homebrew/cmd/doctor.rb
+++ b/Library/Homebrew/cmd/doctor.rb
@@ -240,6 +240,7 @@ def check_for_latest_xcode
     when 10.5 then "3.1.4"
     when 10.6 then "3.2.6"
     when 10.7 then "4.3.3"
+    when 10.8 then "4.4"
     else nil
   end
   if latest_xcode.nil?
diff --git a/Library/Homebrew/macos.rb b/Library/Homebrew/macos.rb
index 328b904199..0ff421fa16 100644
--- a/Library/Homebrew/macos.rb
+++ b/Library/Homebrew/macos.rb
@@ -270,8 +270,10 @@ module MacOS extend self
           "4.2"
         when 31
           "4.3"
+        when 40
+          "4.4"
         else
-          "4.3"
+          "4.4"
         end
       end
     end
@@ -399,7 +401,8 @@ module MacOS extend self
     "4.3" => {:llvm_build_version=>2336, :clang_version=>"3.1", :clang_build_version=>318},
     "4.3.1" => {:llvm_build_version=>2336, :clang_version=>"3.1", :clang_build_version=>318},
     "4.3.2" => {:llvm_build_version=>2336, :clang_version=>"3.1", :clang_build_version=>318},
-    "4.3.3" => {:llvm_build_version=>2336, :clang_version=>"3.1", :clang_build_version=>318}
+    "4.3.3" => {:llvm_build_version=>2336, :clang_version=>"3.1", :clang_build_version=>318},
+    "4.4" => {:llvm_build_version=>2336, :clang_version=>"4.0", :clang_build_version=>421}
   }
 
   def compilers_standard?
-- 
GitLab