From: "Nicolas Pouillard" <nicolas.pouillard@gmail.com>
To: caml-list@yquem.inria.fr
Subject: Re: [Caml-list] ocamlbuild myocamlbuild question
Date: Sun, 25 Mar 2007 22:50:15 +0200 [thread overview]
Message-ID: <cd67f63a0703251350l4be2eb74o45d420f9a2cca5a8@mail.gmail.com> (raw)
In-Reply-To: <20070325154837.GC3988@pc6197-c703.uibk.ac.at>
On 3/25/07, Christian Sternagel <christian.sternagel@uibk.ac.at> wrote:
> is it possible to give something like
>
> flag ["c"; "~<file:*_stubs.c>"] (S [A "-cc"; A "g++"])
>
> to set the -cc g++ switch for all *.c files except ocaml-stub files. I know, that the above code wouldn't work, but is there a way to do such things?
>
Nop, but you can easily do it by declaring a tag:
$ cat _tags
not <*_stubs.c>: use_gxx
And in your myocamlbuild.ml
flag ["c"; "use_gxx"] (S [A "-cc"; A "g++"])
--
Nicolas Pouillard
prev parent reply other threads:[~2007-03-25 20:50 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-03-25 15:48 Christian Sternagel
2007-03-25 20:50 ` Nicolas Pouillard [this message]
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=cd67f63a0703251350l4be2eb74o45d420f9a2cca5a8@mail.gmail.com \
--to=nicolas.pouillard@gmail.com \
--cc=caml-list@yquem.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