[Omake] More on ocamldep and generated files.

Jason Hickey jyh at cs.caltech.edu
Tue Jun 13 20:29:41 PDT 2006


Aleksey Nogin wrote:
> On 13.06.2006 18:20, Jason Hickey wrote:
> 
>> For now, I've added the ocamldep-omake bytecode executable to OMake.
> 
> 
> The issue with this approach is that ocamldep will, strictly speaking, 
> only handle a particular version of OCaml. This is probably not a big 
> deal, _if_ the "-modules" patch gets accepted for future versions of 
> OCaml. Otherwise we might get stuck having to maintain a whole 
> collection of bytecode ocamldep's for different versions of OCaml :-(

Yes.  The strictly-speaking condition is perhaps strong.  OCaml has been 
reasonably backwards-compatible for minor versions wrt syntax.  But it 
would potentially force a sync with major revisions.

The patch is very simple, let's hope it is accepted (and, if not, 
continue to ask).

> One option would be to maintain both the old and the new build setups in 
> OCaml.om for a while, with a variable dictating which one will get used 
> in each particular instance :-(

Taken into account.  The Boolean variable OCAMLDEP_MODULES_ENABLED 
determines whether the new or old method is used.  This should be set to 
false in MetaPRL because of the custom ocamldep (I haven't committed 
this change to MetaPRL yet).

Jason

-- 
Jason Hickey                  http://www.cs.caltech.edu/~jyh
Caltech Computer Science      Tel: 626-395-6568 FAX: 626-792-4257


More information about the Omake mailing list