aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/macos
diff options
context:
space:
mode:
authorJack Nagel2013-01-29 07:44:19 -0600
committerJack Nagel2013-01-29 07:44:19 -0600
commit667abe8185ab2af150a8cd79f00a56a6b95f52ad (patch)
treeaf98fecc09203caebe3788366afb21e66ab88a85 /Library/Homebrew/macos
parent0a7d2b82b4156d3e429216013ba26465612099ac (diff)
downloadbrew-667abe8185ab2af150a8cd79f00a56a6b95f52ad.tar.bz2
Update clang version regexp in CLT check
Diffstat (limited to 'Library/Homebrew/macos')
-rw-r--r--Library/Homebrew/macos/xcode.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/macos/xcode.rb b/Library/Homebrew/macos/xcode.rb
index 9d8d8dc82..49b18af0d 100644
--- a/Library/Homebrew/macos/xcode.rb
+++ b/Library/Homebrew/macos/xcode.rb
@@ -164,7 +164,7 @@ module MacOS::CLT extend self
end
def latest_version?
- `/usr/bin/clang -v 2>&1` =~ %r{tags/Apple/clang-(\d+)\.(\d+)\.(\d+)}
+ `/usr/bin/clang --version` =~ %r{clang-(\d+)\.(\d+)\.(\d+)}
$1.to_i >= 425 and $3.to_i >= 24
end