aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/utils.rb
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Homebrew/utils.rb')
-rw-r--r--Library/Homebrew/utils.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/Library/Homebrew/utils.rb b/Library/Homebrew/utils.rb
index 71317a8ef..97fa46f7b 100644
--- a/Library/Homebrew/utils.rb
+++ b/Library/Homebrew/utils.rb
@@ -343,8 +343,8 @@ 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+(\.\d+)*)]
- $1
+ `/usr/bin/clang --version` =~ %r[tags/Apple/clang-(\d{2,})]
+ $1.to_i
end
end