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
commitd37918b20fe94216b2b804e9bdfc47c5dc1f5ad9 (patch)
tree14b8ffc89288f42a0ec1a993b6258243cf3ab019 /Library/Homebrew/utils.rb
parent5dc302604f44fe5fbfb3efef1e7af1a21411e21f (diff)
downloadbrew-d37918b20fe94216b2b804e9bdfc47c5dc1f5ad9.tar.bz2
If LLVM isn't installed then fails_with_llvm? is true
This makes sense, I assure you. Fixes Homebrew/homebrew#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