mxcl/homebrew — pull request #14125 by MathieuBt (2012-08-11 15:51:41+00:00)
Title: LLVM 3.1: fix compilation of Ocaml bindings

The problem is that generating the documentation (with ocamldoc) seems to require some object files (.cmi) to be already available. For a quick fix I patched the Makefile so that the global target 'docs' comes after 'bindings'.

I also patched 2 sub-Makefiles where I suspect that the target 'ocamldoc' was hiding the intended default target.

The resulting patch on LLVM is kinda huge unfortunately...

I tested this formula with "brew install --build-from-source llvm" on MAC OS Lion with Ocaml 4.00.