From: "Nicolas Pouillard" <nicolas.pouillard@gmail.com>
To: "Joel Reymont" <joelr1@gmail.com>
Cc: "Caml List" <caml-list@inria.fr>
Subject: Re: [Caml-list] ocamlbuild and automatic dependencies
Date: Wed, 14 Mar 2007 13:24:01 +0100 [thread overview]
Message-ID: <cd67f63a0703140524r142d3877h9740d12feab1a544@mail.gmail.com> (raw)
In-Reply-To: <80E2E3A7-2603-4706-8186-566C6DA14452@gmail.com>
On 3/14/07, Joel Reymont <joelr1@gmail.com> wrote:
> ocamlbuild does handle "open Module" as well as detect usage of
> Module.xxx. It does not seem to detect "module X = Module" and then
> X.xxx when calculating dependencies.
>
> Am I missing something?
>
ocamlbuild runs ocamldep -module on your file so you can experiment by yourself.
In "module X = Module" ocamldep infer a dependency on Module that's all.
Since ocamldep can makes false positive (open A ;; open B ;;)
ocamlbuild do nasty things to get rid of that.
The drawback, is that sometimes ocamlbuild ignore silently some dependencies.
In that case run it with -verbose 1 and look at the _log file.
You will see:
Warning: Failed to build the module B requested by ocamldep
If you do think that's wrong to ignore it, then force it's construction:
ocamlbuild b.cmo
You will see why ocamlbuild ignores it.
Hope it helps,
Cheers,
--
Nicolas Pouillard
next prev parent reply other threads:[~2007-03-14 12:24 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-03-14 12:14 Joel Reymont
2007-03-14 12:24 ` Nicolas Pouillard [this message]
2007-03-14 12:36 ` [Caml-list] " Joel Reymont
2007-03-14 12:43 ` Nicolas Pouillard
2007-03-14 12:47 ` Joel Reymont
2007-03-14 13:11 ` Nicolas Pouillard
2007-03-14 20:11 ` skaller
2007-03-14 20:57 ` Alain Frisch
2007-03-15 3:46 ` skaller
2007-03-16 14:00 ` Joel Reymont
2007-03-16 14:22 ` Daniel de Rauglaudre
2007-03-17 0:18 ` skaller
2007-03-17 3:01 ` Daniel de Rauglaudre
2007-03-17 8:14 ` Alain Frisch
2007-03-17 13:52 ` Modules for Dummies skaller
2007-03-16 14:40 ` [Caml-list] ocamlbuild and automatic dependencies Jacques Garrigue
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=cd67f63a0703140524r142d3877h9740d12feab1a544@mail.gmail.com \
--to=nicolas.pouillard@gmail.com \
--cc=caml-list@inria.fr \
--cc=joelr1@gmail.com \
/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;
as well as URLs for NNTP newsgroup(s).