caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Dario Teixeira <darioteixeira@yahoo.com>
To: Gabriel Scherer <gabriel.scherer@gmail.com>
Cc: caml-list@inria.fr
Subject: Re: [Caml-list] Telling Ocamlbuild to link seemingly unreferenced modules
Date: Fri, 6 May 2011 10:09:59 -0700 (PDT)	[thread overview]
Message-ID: <33737.80989.qm@web111504.mail.gq1.yahoo.com> (raw)

Hi,

> I'm not exactly sure this is a complete answer to your problem (I'm not > familiar with plugin linking and all that), but here is a small test:
>
> (...)
>
> I don't know the exact semantics of this 'dispatch' function
> (After_rules, etc.), I just imitated it from an other project doing a
> similar thing. I suppose you could find more detailed answers in the
> ocamlbuild documentation.

Thanks for the input, Gabriel.  Directly hacking the myocamlbuild.ml file
does work, and the process may be even further simplified with just a
couple of lines:

dep ["ocaml"; "link"; "native"] ["foo.cmx"];
dep ["ocaml"; "link"; "byte"] ["foo.cmo"];

However, I still wonder if there's some other incantation that would tell
Ocamlbuild to link in a given module without requiring tweaking myocamlbuild.ml.
Also, I suspect it is possible to further condense the two lines above
into a single one.

cheers,
Dario



             reply	other threads:[~2011-05-06 17:10 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-05-06 17:09 Dario Teixeira [this message]
  -- strict thread matches above, loose matches on Subject: below --
2011-05-06 19:34 Dario Teixeira
2011-05-06 14:34 Dario Teixeira
2011-05-06 15:38 ` Gabriel Scherer

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=33737.80989.qm@web111504.mail.gq1.yahoo.com \
    --to=darioteixeira@yahoo.com \
    --cc=caml-list@inria.fr \
    --cc=gabriel.scherer@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).