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:
parent
e4bd231680
commit
df8edc94d6
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user