diff options
| author | Jack Nagel | 2014-05-12 14:33:41 -0500 |
|---|---|---|
| committer | Jack Nagel | 2014-05-12 14:34:23 -0500 |
| commit | 6ae896aa98d2bbe35c11d903648275b0b413d6c4 (patch) | |
| tree | cbe0cc422206b24da019295272e183907d161ca8 /Library | |
| parent | adc0e7a6cb2e1790efbefe478875eba338590e96 (diff) | |
| download | homebrew-6ae896aa98d2bbe35c11d903648275b0b413d6c4.tar.bz2 | |
Fix CLT outdated check on 10.9
Fixes #27420.
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/os/mac/xcode.rb | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/Library/Homebrew/os/mac/xcode.rb b/Library/Homebrew/os/mac/xcode.rb index eacf5fba9..7d8f12796 100644 --- a/Library/Homebrew/os/mac/xcode.rb +++ b/Library/Homebrew/os/mac/xcode.rb @@ -164,8 +164,12 @@ module OS end def outdated? - version = `/usr/bin/clang --version`[%r{clang-(\d+\.\d+\.\d+)}, 1] - return true unless version + if MacOS.version >= :mavericks + version = `#{MAVERICKS_PKG_PATH}/usr/bin/clang --version` + else + version = `/usr/bin/clang --version` + end + version = version[%r{clang-(\d+\.\d+\.\d+)}, 1] || "0" version < latest_version end |
