From: "Daniel Bünzli" <daniel.buenzli@erratique.ch>
To: OCaml Mailing List <caml-list@inria.fr>
Subject: ocamlbuild and installed modules and libraries
Date: Sun, 16 Nov 2008 19:22:02 +0100 [thread overview]
Message-ID: <6C9617AA-8360-4857-9BC0-EB13ACBEF8AD@erratique.ch> (raw)
Hello,
Is it possible to specify a single installed module (instead of a lib)
for link time ? That is is there something like -lib but for module so
that I can type :
ocamlbuild -I +xmlm -mod xmlm test.native
where test.ml uses the xmlm module
And what about having special tags use_lib_$LIB and use_mod_$MOD that
automatically create rules to use libraries $LIB.cm(x)a and module
$MOD.cm(o|x) so that just the appropriate -I to find the files has to
be specified. In most cases having to use a plugin just for that seems
overkill. Or is there another way ?
Best,
Daniel
next reply other threads:[~2008-11-16 18:23 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-11-16 18:22 Daniel Bünzli [this message]
2008-11-16 20:37 ` [Caml-list] " Nicolas Pouillard
2008-11-17 9:20 ` Daniel Bünzli
2008-11-17 9:54 ` Romain Bardou
2008-11-17 10:07 ` Daniel Bünzli
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=6C9617AA-8360-4857-9BC0-EB13ACBEF8AD@erratique.ch \
--to=daniel.buenzli@erratique.ch \
--cc=caml-list@inria.fr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox