Detect 2-digit clang build versions
Xcode 3.2.6's build of clang is 77, which wasn't being matched by the clang_build_version regexp. Closes Homebrew/homebrew#8796. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
This commit is contained in:
parent
265ea4d1fb
commit
6612e49a3c
@ -349,7 +349,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{3}(\.\d)*)]
|
||||
`/usr/bin/clang --version` =~ %r[tags/Apple/clang-(\d{2,3}(\.\d)*)]
|
||||
$1
|
||||
end
|
||||
end
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user