caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Romain Bardou <Romain.Bardou@lri.fr>
To: "Daniel Bünzli" <daniel.buenzli@erratique.ch>
Cc: OCaml List <caml-list@yquem.inria.fr>
Subject: Re: [Caml-list] ocambuild, disabling caml rules ?
Date: Fri, 20 Feb 2009 16:43:13 +0100	[thread overview]
Message-ID: <499ECF91.6040306@lri.fr> (raw)
In-Reply-To: <EEC1BEB1-2AAF-44AD-B1F2-D1AB5AE5B784@erratique.ch>

Daniel Bünzli a écrit :
> Is it possible to disable the default rules ?
> 
> I'm using ocamlbuild for a plain C project with my own rules and it is 
> painfull when something fails that it fallbacks on ocaml C's compilation 
> rules. These rules wil anyway fail and they override the error that 
> occured with my rule that should have been used.

I don't think there is any. In fact, the rules are hard-coded in the 
source code (in ocaml_specific.ml) like this :

rule "ocaml: ml -> d.cmo & cmi" ...;;
rule "ocaml: ml -> cmo & cmi" ...;;

So there is no test, they are always ran. And there is no way to delete 
a rule AFAIK.

-- 
Romain Bardou


      reply	other threads:[~2009-02-20 15:42 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-02-20 14:11 Daniel Bünzli
2009-02-20 15:43 ` Romain Bardou [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=499ECF91.6040306@lri.fr \
    --to=romain.bardou@lri.fr \
    --cc=caml-list@yquem.inria.fr \
    --cc=daniel.buenzli@erratique.ch \
    /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).