aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/utils.rb
diff options
context:
space:
mode:
authorMax Howell2011-09-06 17:51:14 +0100
committerMax Howell2011-09-06 17:51:23 +0100
commit9c77b52d6ef966915ff5e415549331329b81a802 (patch)
tree7f5585972e75fcfa417cc7b4d08c154f1de73ed6 /Library/Homebrew/utils.rb
parent44196242fa9193d8318abc8b7a2a40fa6a9edbc5 (diff)
downloadhomebrew-9c77b52d6ef966915ff5e415549331329b81a802.tar.bz2
If LLVM isn't installed then fails_with_llvm? is true
This makes sense, I assure you. Fixes #7458.
Diffstat (limited to 'Library/Homebrew/utils.rb')
-rw-r--r--Library/Homebrew/utils.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/utils.rb b/Library/Homebrew/utils.rb
index cd3a5fa49..5ce54e6fc 100644
--- a/Library/Homebrew/utils.rb
+++ b/Library/Homebrew/utils.rb
@@ -329,7 +329,7 @@ module MacOS extend self
def llvm_build_version
# for Xcode 3 on OS X 10.5 this will not exist
# NOTE may not be true anymore but we can't test
- if File.exist? "/usr/bin/llvm-gcc"
+ @llvm_build_version ||= if File.exist? "/usr/bin/llvm-gcc"
`/usr/bin/llvm-gcc -v 2>&1` =~ /LLVM build (\d{4,})/
$1.to_i
end