Update clang version regexp in CLT check

This commit is contained in:
Jack Nagel 2013-01-29 07:44:19 -06:00
parent 0a7d2b82b4
commit 667abe8185

View File

@ -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