aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJeremy Voorhis2012-02-26 21:01:41 -0800
committerMax Howell2012-02-28 20:13:16 +0000
commitf66bc9bd15b74df23ff7e4e054da0dd86bcecdb4 (patch)
tree8b174cb2bbdf222f95de2a42e81e84ab4fa90376 /Library
parent97ddd74698564c6a23118445c233f1dd69649700 (diff)
downloadhomebrew-f66bc9bd15b74df23ff7e4e054da0dd86bcecdb4.tar.bz2
Fix LLVM recipe
Fixed a regression where the definition of clang_dir was removed. Closes #10515. Signed-off-by: Max Howell <max@methylblue.com> Modified patch so clang_dir is a function rather than a variable.
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/llvm.rb8
1 files changed, 5 insertions, 3 deletions
diff --git a/Library/Formula/llvm.rb b/Library/Formula/llvm.rb
index 76caa7d36..3d080efdb 100644
--- a/Library/Formula/llvm.rb
+++ b/Library/Formula/llvm.rb
@@ -44,9 +44,7 @@ class Llvm < Formula
exit 1
end
- if build_clang? or build_analyzer?
- Clang.new("clang").brew { (buildpath+'tools/clang').install Dir['*'] }
- end
+ Clang.new("clang").brew { clang_dir.install Dir['*'] } if build_clang? or build_analyzer?
if build_universal?
ENV['UNIVERSAL'] = '1'
@@ -105,6 +103,10 @@ class Llvm < Formula
brew rm llvm && brew install llvm
EOS
end
+
+ def clang_dir
+ buildpath/'tools/clang'
+ end
end