From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: caml-list@sympa.inria.fr Delivered-To: caml-list@sympa.inria.fr Received: from mail2-relais-roc.national.inria.fr (mail2-relais-roc.national.inria.fr [192.134.164.83]) by sympa.inria.fr (Postfix) with ESMTPS id 1083A7FC6B for ; Sun, 18 Oct 2015 13:12:11 +0200 (CEST) IronPort-PHdr: 9a23:JQTjJh/0L5wDdP9uRHKM819IXTAuvvDOBiVQ1KB91O0cTK2v8tzYMVDF4r011RmSDdmduq4P0LSempujcFJDyK7JiGoFfp1IWk1NouQttCtkPvS4D1bmJuXhdS0wEZcKflZk+3amLRodQ56mNBXsq3G/pQQfBg/4fVIsYL+lRsiD04/siaibwN76XUZhvHKFe7R8LRG7/036l/I9ps9cEJs30QbDuXBSeu5blitCLFOXmAvgtI/rpMYwuwwZgf8q9tZBXKPmZOx4COUAVHV1e1wysf/Ck1HvSjqCri8OW2MalQtFKwfA5RD+GJz2t32pmPB63Xy2NMv3QLQDc6Ck/aNqAEvkgSEGOjp/+nzajN50jYpWugioux1m3oOSa4HDZ6k2Rb/UYd5PHTkJZc1WTSEUR9rkN4Y= Authentication-Results: mail2-smtp-roc.national.inria.fr; spf=None smtp.pra=daniel.buenzli@erratique.ch; spf=None smtp.mailfrom=daniel.buenzli@erratique.ch; spf=None smtp.helo=postmaster@smtp.webfaction.com Received-SPF: None (mail2-smtp-roc.national.inria.fr: no sender authenticity information available from domain of daniel.buenzli@erratique.ch) identity=pra; client-ip=74.55.86.74; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="daniel.buenzli@erratique.ch"; x-sender="daniel.buenzli@erratique.ch"; x-conformance=sidf_compatible Received-SPF: None (mail2-smtp-roc.national.inria.fr: no sender authenticity information available from domain of daniel.buenzli@erratique.ch) identity=mailfrom; client-ip=74.55.86.74; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="daniel.buenzli@erratique.ch"; x-sender="daniel.buenzli@erratique.ch"; x-conformance=sidf_compatible Received-SPF: None (mail2-smtp-roc.national.inria.fr: no sender authenticity information available from domain of postmaster@smtp.webfaction.com) identity=helo; client-ip=74.55.86.74; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="daniel.buenzli@erratique.ch"; x-sender="postmaster@smtp.webfaction.com"; x-conformance=sidf_compatible X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A0ApAADnfSNWnEpWN0pehAq+aQENgVojhUE6AoFJFAEBAQEBAQEBEAEBAQEBBg0JCSEugiaCCAEBBCNWEAsaAh8HAgJHEAYbiCgECa9xknoBAQEHAQEBAQEaBIEiilOEWjMHgmkxgRQFjRKJEYUZiVyHLRCPFINvHwEBglMWBxaBQHaFYgEBAQ X-IPAS-Result: A0ApAADnfSNWnEpWN0pehAq+aQENgVojhUE6AoFJFAEBAQEBAQEBEAEBAQEBBg0JCSEugiaCCAEBBCNWEAsaAh8HAgJHEAYbiCgECa9xknoBAQEHAQEBAQEaBIEiilOEWjMHgmkxgRQFjRKJEYUZiVyHLRCPFINvHwEBglMWBxaBQHaFYgEBAQ X-IronPort-AV: E=Sophos;i="5.17,697,1437429600"; d="scan'208";a="183310821" Received: from mail6.webfaction.com (HELO smtp.webfaction.com) ([74.55.86.74]) by mail2-smtp-roc.national.inria.fr with ESMTP; 18 Oct 2015 13:12:10 +0200 Received: from [192.168.0.2] (cpc16-cmbg14-2-0-cust300.5-4.cable.virginm.net [86.6.157.45]) by smtp.webfaction.com (Postfix) with ESMTP id 854B420797DF; Sun, 18 Oct 2015 11:12:08 +0000 (UTC) Date: Sun, 18 Oct 2015 12:12:07 +0100 From: =?utf-8?Q?Daniel_B=C3=BCnzli?= To: ZAN DoYe Cc: Christian Lindig , caml-list@inria.fr Message-ID: <2430F5FD6256499681D790672F3BE866@erratique.ch> In-Reply-To: <56237C6C.40007@gmail.com> References: <562355BA.3020802@gmail.com> <826A51D2-DA25-4E5C-A1D4-5F698C30A077@gmail.com> <56237C6C.40007@gmail.com> X-Mailer: sparrow 1.6.4 (build 1178) MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Subject: Re: [Caml-list] ocamlbuild add unexpected directories to including-dirs while building multi-targets Le dimanche, 18 octobre 2015 =C3=A0 12:03, ZAN DoYe a =C3=A9crit : > Thanks. I think it's common that two targets contain modules with the sam= e name. e.g. targetA.Init and targetB.Init. each target has a Init module t= o initialize themself. It'll be convenient if ocamlbuild isolates inc-dir f= or each target. Note that if you are writing libraries you should prefix these names anyway= as they would exist in the global toplevel namespace and hence potentially= clash with other libraries.=20=20 That said I'm also often hit by the limitations you mention when I have lib= raries that provide multiple implementations of the same interface. The wor= k around is to avoid `include`ing the directories in your _tags file and in= voke ocamlbuild with the `-I` option, see for example [1].=20=20 Best, Daniel [1] https://github.com/dbuenzli/mtime/blob/a9dafd38002bfd8bdc5d3c3963e2d2d4= 46c2ad6a/build#L19-L20