From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on yquem.inria.fr X-Spam-Level: X-Spam-Status: No, score=0.1 required=5.0 tests=AWL autolearn=disabled version=3.1.3 X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from mail3-relais-sop.national.inria.fr (mail3-relais-sop.national.inria.fr [192.134.164.104]) by yquem.inria.fr (Postfix) with ESMTP id C8110BBC4 for ; Fri, 20 Feb 2009 16:42:26 +0100 (CET) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AokDAFNenkmBrw8EcWdsb2JhbACUVwEMCwkZv3iEDwY X-IronPort-AV: E=Sophos;i="4.38,242,1233529200"; d="scan'208";a="23291707" Received: from ext.lri.fr ([129.175.15.4]) by mail3-smtp-sop.national.inria.fr with ESMTP/TLS/ADH-AES256-SHA; 20 Feb 2009 16:42:26 +0100 Received: from localhost (localhost [127.0.0.1]) by ext.lri.fr (Postfix) with ESMTP id 62C4EA482D; Fri, 20 Feb 2009 16:42:26 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at lri.fr Received: from ext.lri.fr ([127.0.0.1]) by localhost (ext.lri.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id HwgfKlKqotYj; Fri, 20 Feb 2009 16:42:26 +0100 (CET) Received: from smtp.lri.fr (vhost3-23 [129.175.3.23]) by ext.lri.fr (Postfix) with ESMTP id 4AB1EA4829; Fri, 20 Feb 2009 16:42:26 +0100 (CET) Received: from [129.175.4.107] (lri4-107 [129.175.4.107]) by smtp.lri.fr (Postfix) with ESMTP id 41BE0E05B4; Fri, 20 Feb 2009 16:42:26 +0100 (CET) Message-ID: <499ECF91.6040306@lri.fr> Date: Fri, 20 Feb 2009 16:43:13 +0100 From: Romain Bardou User-Agent: Thunderbird 2.0.0.19 (X11/20090105) MIME-Version: 1.0 To: =?ISO-8859-1?Q?Daniel_B=FCnzli?= Cc: OCaml List Subject: Re: [Caml-list] ocambuild, disabling caml rules ? References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Spam: no; 0.00; lri:01 bunzli:01 fallbacks:01 ocaml:01 compilation:01 ocaml:01 cmo:01 cmi:01 cmo:01 cmi:01 afaik:01 caml-list:01 caml:02 override:03 daniel:04 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