Skip to content

Commit

Permalink
Merge pull request Andersbakken#202 from ptrv/fix-llvm-osx-formula
Browse files Browse the repository at this point in the history
Fix llvm homebrew formula
  • Loading branch information
jhanssen committed Jul 11, 2014
2 parents b1ee8d6 + d5e4f34 commit 229eabf
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions llvm-osx/llvm.rb
Original file line number Diff line number Diff line change
Expand Up @@ -49,15 +49,18 @@ def install
raise 'The Python bindings need the shared library.'
end

Clang.new("clang").brew do
spec = build.head? ? :head : :stable
path = Pathname.new(__FILE__).expand_path

Clang.new("clang", path, spec).brew do
clang_dir.install Dir['*']
end if build.include? 'with-clang'

CompilerRt.new("compiler-rt").brew do
CompilerRt.new("compiler-rt", path, spec).brew do
(buildpath/'projects/compiler-rt').install Dir['*']
end if build.include? 'with-asan'

LibCpp.new("libcxx").brew do
LibCpp.new("libcxx", path, spec).brew do
(buildpath/'projects/libcxx').install Dir['*']
end if build.include? 'with-libcxx'

Expand Down

0 comments on commit 229eabf

Please sign in to comment.