diff options
| author | Jack Nagel | 2013-01-29 07:44:19 -0600 |
|---|---|---|
| committer | Jack Nagel | 2013-01-29 07:44:19 -0600 |
| commit | 3dc5b690819b77add787fbd444692dc14e1d6abe (patch) | |
| tree | d9144a212510cba0e3a537f1dd0dc0c507b33d8b /Library/Homebrew/macos/xcode.rb | |
| parent | 090c6ad5df708d054eeba3be9850c0c2304ba9a2 (diff) | |
| download | homebrew-3dc5b690819b77add787fbd444692dc14e1d6abe.tar.bz2 | |
Update clang version regexp in CLT check
Diffstat (limited to 'Library/Homebrew/macos/xcode.rb')
| -rw-r--r-- | Library/Homebrew/macos/xcode.rb | 2 |
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 |
