Re: [Caml-list] ocamlbuild: ml - cmx cmi o ?

2008-10-16 Thread Romain Bardou
I observe that ocamlbuild does not build cmx cmi and o files from a ml file (which has no associated mli) directly. Do others see different behavior? Instead it builds cmo and cmi from the ml using ocamlc, and then builds the cmx and o files from there using ocamlopt. Is there a reason I’m

Re: [Caml-list] ocamlbuild: ml - cmx cmi o ?

2008-10-16 Thread Romain Bardou
There is a deep reason for this, the short answer is: if you want native-compilation only, then all your .ml files must have a .mli Indeed ocamlbuild only generates .cmi from .ml using ocamlc, this is to avoid conflicting defaulting rules in the engine. Are conflicting rules a problem?

[Caml-list] ocamlbuild: ml - cmx cmi o ?

2008-10-15 Thread Josh Berdine
Hi, I observe that ocamlbuild does not build cmx cmi and o files from a ml file (which has no associated mli) directly. Do others see different behavior? Instead it builds cmo and cmi from the ml using ocamlc, and then builds the cmx and o files from there using ocamlopt. Is there a reason