English version
Accueil     À propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis à jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml à l'adresse ocaml.org.

Browse thread
ocamlbuild: ml -> cmx & cmi & o ?
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2008-10-15 (11:00)
From: Josh Berdine <jjb@m...>
Subject: ocamlbuild: ml -> cmx & cmi & o ?

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 missing that ocamlbuild does not have a default rule for this case, using only one call to ocamlopt?  If so, is there an easy way to do this with a plugin?

Cheers,  Josh