caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* "Virtual" dependencies in ocamlbuild
@ 2009-01-24 18:27 Stéphane Glondu
  2009-01-24 19:07 ` [Caml-list] " Nicolas Pouillard
  0 siblings, 1 reply; 2+ messages in thread
From: Stéphane Glondu @ 2009-01-24 18:27 UTC (permalink / raw)
  To: caml-list

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.


Cheers,

-- 
Stéphane


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [Caml-list] "Virtual" dependencies in ocamlbuild
  2009-01-24 18:27 "Virtual" dependencies in ocamlbuild Stéphane Glondu
@ 2009-01-24 19:07 ` Nicolas Pouillard
  0 siblings, 0 replies; 2+ messages in thread
From: Nicolas Pouillard @ 2009-01-24 19:07 UTC (permalink / raw)
  To: Stéphane Glondu; +Cc: caml-list

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
declaration.

Best regards,

-- 
Nicolas Pouillard


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-01-24 19:09 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-01-24 18:27 "Virtual" dependencies in ocamlbuild Stéphane Glondu
2009-01-24 19:07 ` [Caml-list] " Nicolas Pouillard

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).