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
"Virtual" dependencies in ocamlbuild
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2009-01-24 (19:09)
From: Nicolas Pouillard <nicolas.pouillard@g...>
Subject: Re: [Caml-list] "Virtual" dependencies in ocamlbuild
Excerpts from Stéphane Glondu's message of Sat Jan 24 19:27:08 +0100 2009:
> Hi all,
> Is there any way to add a dependency to a .cma file without adding it to
> the linking command?
> It seems that "dep" from the API also adds the dependency for linking:
> for example, if that dependency is a stamp file, that stamp file is
> stupidly added to "ocamlc -a" command, making it fail.

You can avoid linking by adding the "dont_link_with" tag, to your dep

Best regards,

Nicolas Pouillard