From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from mail4-relais-sop.national.inria.fr (mail4-relais-sop.national.inria.fr [192.134.164.105]) by yquem.inria.fr (Postfix) with ESMTP id 19288BBAF for ; Tue, 23 Mar 2010 09:54:04 +0100 (CET) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AtUBAMMeqEtKfU4ZkGdsb2JhbACDCpgZCBUBAQEBCQkMBxMDH6kIghqFQoh5AQEDBYEngmdqBIww X-IronPort-AV: E=Sophos;i="4.51,293,1267398000"; d="scan'208";a="59539558" Received: from ey-out-2122.google.com ([74.125.78.25]) by mail4-smtp-sop.national.inria.fr with ESMTP; 23 Mar 2010 09:54:03 +0100 Received: by ey-out-2122.google.com with SMTP id 4so489059eyf.31 for ; Tue, 23 Mar 2010 01:54:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:received:in-reply-to :references:date:x-google-sender-auth:received:message-id:subject :from:to:cc:content-type:content-transfer-encoding; bh=lubgr+XBXC1YVQ/4kuAz0qb9pYPny+hSzLAxIGUncXc=; b=BhDzWWqf5tK7YoXMQAR9tx6fqX+nx7TEBFm3hK8mZLsAXSE4ICN8j54GPOsv4wiQyS F7zuddgzEBTFG6Xf0j7NWTTT8fdFt2Cu9il2V2mdShBGTe4e5YX+MZXWS7j42+FN4uOK Ym6DPDKZrRk9b20szgsyMB4j+rFGTOvPXPbCY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; b=kSIBtkgayyTNzweNZxaNQtXOqUMLBCy2iu6qEN348Pd6b/Wcxux/iXnZWci9ukHJVs Y2Xqcmeil+KXlKxGMxPeIfKVqE0uuExOltkExeutL41A6X7mj+rF6pub157fMMo5qXx1 sJN49WOkOYbI0egvWNTllziKb4rgXaNzEWLjM= MIME-Version: 1.0 Sender: daniel.c.buenzli@gmail.com Received: by 10.213.34.145 with HTTP; Tue, 23 Mar 2010 01:54:03 -0700 (PDT) In-Reply-To: <4BA81D96.8010902@grant-olson.net> References: <4BA80CB5.4080402@grant-olson.net> <4BA81D96.8010902@grant-olson.net> Date: Tue, 23 Mar 2010 09:54:03 +0100 X-Google-Sender-Auth: 67c31f4bc6746c51 Received: by 10.213.97.85 with SMTP id k21mr683480ebn.79.1269334443209; Tue, 23 Mar 2010 01:54:03 -0700 (PDT) Message-ID: <91a3da521003230154h4ba92c13v648ebd090ac3dfdb@mail.gmail.com> Subject: Re: [Caml-list] Re: Building multiple configurations? From: =?UTF-8?Q?Daniel_B=C3=BCnzli?= To: kgo@grant-olson.net Cc: caml-list@yquem.inria.fr Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Spam: no; 0.00; buenzli:01 symlink:01 23,:98 wrote:01 wrote:01 caml-list:01 seems:03 module:03 daniel:04 daniel:04 tue:06 michael:07 correct:08 depending:10 obvious:10 On Tue, Mar 23, 2010 at 2:47 AM, Grant Olson wrote: > On 3/22/2010 9:37 PM, Michael Ekstrand wrote: >> >> You could also have the two different module implementations under >> different names and have the build system symlink or copy the correct >> one in place prior to building. =C2=A0In OMake, this is easy with the >> 'ln-or-cp' command. >> > > Exactly what I want. =C2=A0Now that you've pointed it out, it seems so > obvious. =C2=A0Just copy the files and treat the copy as a build artifact= . > Thanks. A similar way is to just put them in two different directories under the same name and include the right one depending on what you want (makes the solution more cross-platform). Best, Daniel