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=1.2 required=5.0 tests=AWL,SPF_NEUTRAL autolearn=disabled version=3.1.3 X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from discorde.inria.fr (discorde.inria.fr [192.93.2.38]) by yquem.inria.fr (Postfix) with ESMTP id 4B499BC69 for ; Sun, 25 Mar 2007 22:50:18 +0200 (CEST) Received: from nz-out-0506.google.com (nz-out-0506.google.com [64.233.162.239]) by discorde.inria.fr (8.13.6/8.13.6) with ESMTP id l2PKoHZ4008411 for ; Sun, 25 Mar 2007 22:50:17 +0200 Received: by nz-out-0506.google.com with SMTP id r28so1460340nza for ; Sun, 25 Mar 2007 13:50:16 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=l3GTbILmXtisTqXuZ9FWQ0UD0mUiPz+fpsgx1pKUvOCkdfhbbcV9Dt9ZkjRdI81EVZusqD56gGy4A28VtyyF2/xZzgLPiJ4r56NLyF07+z2H3VWLzgZaRpTewHpfBM4bnjdI9/sDmUXWvA3EBIN+WSbgk4uhKmOicQLuSsr3ts4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=L2Nhvc48uh8HhIOcIGb12A7wb3MNis6rwDSMimPfDYmTF4eT/Gpvi+mpqQP6hT4Id81/vlQ05w0cczKRvtu2Jd45JvPIw2rl4JNUffA3BSW3+bn2x2679tBElfpJeKG0dJ2hNhsHml9XZIBYi8s+EH3fkQGobtuA51XkgllX3Bo= Received: by 10.114.25.3 with SMTP id 3mr2346481way.1174855815702; Sun, 25 Mar 2007 13:50:15 -0700 (PDT) Received: by 10.114.183.4 with HTTP; Sun, 25 Mar 2007 13:50:15 -0700 (PDT) Message-ID: Date: Sun, 25 Mar 2007 22:50:15 +0200 From: "Nicolas Pouillard" To: caml-list@yquem.inria.fr Subject: Re: [Caml-list] ocamlbuild myocamlbuild question In-Reply-To: <20070325154837.GC3988@pc6197-c703.uibk.ac.at> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20070325154837.GC3988@pc6197-c703.uibk.ac.at> X-j-chkmail-Score: MSGID : 4606E089.000 on discorde : j-chkmail score : X : 0/20 1 0.000 -> 1 X-Miltered: at discorde with ID 4606E089.000 by Joe's j-chkmail (http://j-chkmail . ensmp . fr)! X-Spam: no; 0.00; stubs:01 nop:01 stubs:01 wrote:01 caml-list:01 declaring:02 nicolas:08 nicolas:08 file:08 flag:09 flag:09 except:10 question:12 tag:13 things:13 On 3/25/07, Christian Sternagel wrote: > is it possible to give something like > > flag ["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