From 667abe8185ab2af150a8cd79f00a56a6b95f52ad Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Tue, 29 Jan 2013 07:44:19 -0600 Subject: [PATCH] Update clang version regexp in CLT check --- Library/Homebrew/macos/xcode.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Homebrew/macos/xcode.rb b/Library/Homebrew/macos/xcode.rb index 9d8d8dc82f..49b18af0d8 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