diff options
| author | Mike McQuaid | 2016-11-05 10:35:39 -0400 | 
|---|---|---|
| committer | Mike McQuaid | 2016-11-05 10:58:38 -0400 | 
| commit | 4015d0465a975aaac26d5a47395ab61e29d1702f (patch) | |
| tree | 8069d75449aa614714b164ea06207369746070af /Library | |
| parent | 3cef6a3a78fb9d300b6d7db4cf9a389c1af4ce8b (diff) | |
| download | brew-4015d0465a975aaac26d5a47395ab61e29d1702f.tar.bz2 | |
xcode: add checks for Xcode/CLT minimum versions.
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/os/mac/xcode.rb | 22 | 
1 files changed, 22 insertions, 0 deletions
diff --git a/Library/Homebrew/os/mac/xcode.rb b/Library/Homebrew/os/mac/xcode.rb index 9f49162d5..f081d4382 100644 --- a/Library/Homebrew/os/mac/xcode.rb +++ b/Library/Homebrew/os/mac/xcode.rb @@ -25,6 +25,17 @@ module OS          end        end +      def minimum_version +        case MacOS.version +        when "10.12" then "8.0" +        else "2.0" +        end +      end + +      def minimum_version? +        version < minimum_version +      end +        def prerelease?          # TODO: bump to version >= "8.3" after Xcode 8.2 is stable.          version >= "8.2" @@ -205,6 +216,17 @@ module OS          end        end +      def minimum_version +        case MacOS.version +        when "10.12" then "8.0.0" +        else "4.0.0" +        end +      end + +      def minimum_version? +        version < minimum_version +      end +        def outdated?          if MacOS.version >= :mavericks            version = Utils.popen_read("#{MAVERICKS_PKG_PATH}/usr/bin/clang --version")  | 
