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.7 required=5.0 tests=AWL,NO_DNS_FOR_FROM autolearn=disabled version=3.1.3 X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from mail1-relais-roc.national.inria.fr (mail1-relais-roc.national.inria.fr [192.134.164.82]) by yquem.inria.fr (Postfix) with ESMTP id 63505BBAF for ; Sat, 24 Jan 2009 20:09:05 +0100 (CET) X-IronPort-AV: E=Sophos;i="4.37,318,1231110000"; d="scan'208";a="23011586" Received: from peray.inria.fr (HELO ausone.local) ([128.93.8.98]) by mail1-relais-roc.national.inria.fr with ESMTP; 24 Jan 2009 20:09:04 +0100 Received: by ausone.local (Postfix, from userid 501) id 3F0D02D1AE3C; Sat, 24 Jan 2009 20:07:58 +0100 (CET) Content-Type: text/plain; charset=UTF-8 Cc: caml-list Subject: Re: [Caml-list] "Virtual" dependencies in ocamlbuild From: Nicolas Pouillard To: Stéphane Glondu References: <497B5D7C.8050602@glondu.net> In-Reply-To: <497B5D7C.8050602@glondu.net> Date: Sat, 24 Jan 2009 20:07:57 +0100 Message-Id: <1232824013-sup-6395@ausone.local> User-Agent: Sup/git X-Spam: no; 0.00; dependencies:01 ocamlc:01 phane:98 2009:98 caml-list:01 dependency:01 dependency:01 cma:01 declaration:02 api:02 linking:02 linking:02 seems:03 stamp:06 stamp:06 Excerpts from Stéphane Glondu's message of Sat Jan 24 19:27:08 +0100 2009: > Hi all, > > Is there any way to add a dependency to a .cma file without adding it to > the linking command? > > It seems that "dep" from the API also adds the dependency for linking: > for example, if that dependency is a stamp file, that stamp file is > stupidly added to "ocamlc -a" command, making it fail. You can avoid linking by adding the "dont_link_with" tag, to your dep declaration. Best regards, -- Nicolas Pouillard