aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
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