utils: fix clang build regex

This has to be able to match things like "211.10.1" so let's stop using
fixed lengths.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
This commit is contained in:
Jack Nagel 2011-12-16 03:03:10 -06:00
parent e4bd231680
commit df8edc94d6

View File

@ -340,7 +340,7 @@ module MacOS extend self
def clang_build_version
@clang_build_version ||= if File.exist? "/usr/bin/clang"
`/usr/bin/clang --version` =~ %r[tags/Apple/clang-(\d{2,3}(\.\d)*)]
`/usr/bin/clang --version` =~ %r[tags/Apple/clang-(\d+(\.\d+)*)]
$1
end
end