[LLVMdev] [PATCH] Make sure ocamldep runs on all .mli files.

Gordon Henriksen gordonhenriksen at mac.com
Tue Mar 4 06:54:54 PST 2008


Hi Erick,

Thanks for your patches!

On Mar 4, 2008, at 01:33, Erick Tryzelaar wrote:

> This is a small bug fix for the ocaml build system that allows
> for dependencies to be generated for ocaml interface files.

I've committed the second half of this.

> ---
> bindings/ocaml/Makefile.ocaml |    4 ++--
> 1 files changed, 2 insertions(+), 2 deletions(-)diff --git bindings/ 
> ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml
> index 6fc9a9a..d505ad8 100644
> --- bindings/ocaml/Makefile.ocaml
> +++ bindings/ocaml/Makefile.ocaml
> @@ -58,7 +58,7 @@ Archive.CMXA := $(strip $(OCAMLOPT) -a $ 
> (OCAMLAFLAGS) $(OCAMLDEBUGFLAG) -o)
>
> # Source files
> OcamlSources1 := $(sort $(wildcard $(PROJ_SRC_DIR)/*.ml))
> -OcamlHeaders1 := $(OcamlSources1:.ml=.mli)
> +OcamlHeaders1 := $(sort $(wildcard $(PROJ_SRC_DIR)/*.mli))


Not sure how an .mli without a corresponding .ml would be useful, so I  
left this bit.

Thanks!
Gordon




More information about the llvm-dev mailing list