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.
This commit is contained in:
Jeremy Voorhis authored and Max Howell committed 2012-02-28 20:13:16 +00:00
1 parent 97ddd74698
commit f66bc9bd15
1 file changed
+5 -3
+5 -3
View File
@@ -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