caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: "Nicolas Pouillard" <nicolas.pouillard@gmail.com>
To: hmf <hmf@inescporto.pt>
Cc: caml-list <caml-list@yquem.inria.fr>
Subject: Re: [Caml-list] ocamlbuild: using *.itarget with flags
Date: Wed, 21 Nov 2007 13:40:29 +0100	[thread overview]
Message-ID: <1195648376-sup-888@port-ext2.ensta.fr> (raw)
In-Reply-To: <474416D4.4060903@inescporto.pt>

Excerpts from hmf's message of Wed Nov 21 12:30:28 +0100 2007:
> Hello,
Hello,

> I was attempting to use the *.itarget file
> in order to build several modules. I have for
> example:
> 
> all.itarget:
> .................................
> src/comb/tests_comb.d.byte
> src/uf/bench.d.byte
> .................................
> 
> Unfortunately the last target requires
> that I use the Unix module (-lib unix).
> 
> My question is:
> 
> 1. Does this type of grouped target
> support the addition of flags?

Flags to the ocamlbuild binary are just here to quickly give global options.
However this method doesn't scale at all. For this purpose we have tags.

Basically you just have to tag your binary that it uses the unix library.

$ cat _tags
"src/uf/bench.d.byte": use_unix

> A further notice:
> 
> The manual states that in the *.itarget
> files a comment is either a blank or dash.
> Does this mean:
> 
> - comment here
> 
> is a comment? If so, it does not seem
> to work.

The manual is wrong on that point, it's a sharp (#) not a dash (-).

# comment here
-- 
Nicolas Pouillard aka Ertai


  reply	other threads:[~2007-11-21 12:41 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-11-21 11:30 Hugo Ferreira
2007-11-21 12:40 ` Nicolas Pouillard [this message]
2007-11-21 13:01   ` [Caml-list] " Hugo Ferreira

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=1195648376-sup-888@port-ext2.ensta.fr \
    --to=nicolas.pouillard@gmail.com \
    --cc=caml-list@yquem.inria.fr \
    --cc=hmf@inescporto.pt \
    /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).