aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJack Nagel2014-05-12 14:33:41 -0500
committerJack Nagel2014-05-12 14:34:23 -0500
commit6ae896aa98d2bbe35c11d903648275b0b413d6c4 (patch)
treecbe0cc422206b24da019295272e183907d161ca8 /Library
parentadc0e7a6cb2e1790efbefe478875eba338590e96 (diff)
downloadhomebrew-6ae896aa98d2bbe35c11d903648275b0b413d6c4.tar.bz2
Fix CLT outdated check on 10.9
Fixes #27420.
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/os/mac/xcode.rb8
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