caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* ocamlbuild myocamlbuild question
@ 2007-03-25 15:48 Christian Sternagel
  2007-03-25 20:50 ` [Caml-list] " Nicolas Pouillard
  0 siblings, 1 reply; 2+ messages in thread
From: Christian Sternagel @ 2007-03-25 15:48 UTC (permalink / raw)
  To: caml-list

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?

cheers

christian


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [Caml-list] ocamlbuild myocamlbuild question
  2007-03-25 15:48 ocamlbuild myocamlbuild question Christian Sternagel
@ 2007-03-25 20:50 ` Nicolas Pouillard
  0 siblings, 0 replies; 2+ messages in thread
From: Nicolas Pouillard @ 2007-03-25 20:50 UTC (permalink / raw)
  To: caml-list

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


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2007-03-25 20:50 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-03-25 15:48 ocamlbuild myocamlbuild question Christian Sternagel
2007-03-25 20:50 ` [Caml-list] " Nicolas Pouillard

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).