Return-Path: Delivered-To: apmail-incubator-stdcxx-dev-archive@www.apache.org Received: (qmail 33012 invoked from network); 14 Dec 2005 23:42:59 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 14 Dec 2005 23:42:59 -0000 Received: (qmail 16195 invoked by uid 500); 14 Dec 2005 23:42:56 -0000 Delivered-To: apmail-incubator-stdcxx-dev-archive@incubator.apache.org Received: (qmail 16151 invoked by uid 500); 14 Dec 2005 23:42:56 -0000 Mailing-List: contact stdcxx-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: stdcxx-dev@incubator.apache.org Delivered-To: mailing list stdcxx-dev@incubator.apache.org Received: (qmail 16112 invoked by uid 99); 14 Dec 2005 23:42:55 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 14 Dec 2005 15:42:55 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [12.17.213.84] (HELO bco-exchange.bco.roguewave.com) (12.17.213.84) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 14 Dec 2005 15:42:54 -0800 Received: from [10.70.3.113] (10.70.3.113 [10.70.3.113]) by bco-exchange.bco.roguewave.com with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2657.72) id S0A37ZQL; Wed, 14 Dec 2005 16:37:12 -0700 Message-ID: <43A0AEB2.90201@roguewave.com> Date: Wed, 14 Dec 2005 16:45:54 -0700 From: Martin Sebor User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.12) Gecko/20050920 X-Accept-Language: en-us, en MIME-Version: 1.0 To: stdcxx-dev@incubator.apache.org Subject: build.bat with multiple compilers (was Re: Solution generartion script for Intel 9.0 compiler) References: <4D6A8407B7AC6F4D95B0E55C4E7C4C62030EB0F6@exmsk.moscow.vdiweb.com> In-Reply-To: <4D6A8407B7AC6F4D95B0E55C4E7C4C62030EB0F6@exmsk.moscow.vdiweb.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Anton Pevtsov wrote: [...] > 1) Shall we have build.bat for each configuration (VC71, ICC90) or shall > we have only one build.bat for all configuration (in this case first > parameter of the build.bat will be the configuration)? Currently I > change nothing here and there is the unique build.bat file for each > configuration. I remember discussing this before but not the conclusion (or even if we reached one). Let me see if I can find it... ah, here it is: Martin Sebor wrote: > Anton Pevtsov wrote: [...] >> 2. The generate.wsf script after >> the solution generation makes the build.bat file in the BUILDDIR. This >> batch will contain information about BUILDDIR, TOPDIR and CONFIG as >> internal variables values. And it will accept only BUILDTYPE parameters. >> The build.bat will be CONFIG-specific and to avoid collisions it may >> renamed to buildvc71.bat for example. > > > I assume you're concerned about different compilers sharing the same > BUILDDIR. Making the build.bat compiler-specific would certainly work, > but I think it would be more in line with the general philosophy that > is beginning to emerge out of this discussion to have just one build > script even in this case and have its command line argument control > which build type(s) with which compiler(s) to do. > > The script argument could consist of the name of the compiler and the > build type (such as msvc-11s or icc-15d), or, if we wanted to get fancy, > it might be more flexible and allow things like just icc for all known > build types with Intel C++ or just 12d for builds with all compilers > (or even, say the number 8 for all of icc-8d, icc-8s, msvc-8d, and > msvc-8s). But that might be taking it too far ;-) If that's easy to implement I would expect the argument to name both the compiler and the build type (e.g., icc-11s or msvc-12d). Otherwise, two arguments would be fine (I would make the first argument the build type for consistency with single-compiler builds, and the second one the compiler name; we could default to msvc when no name is given). Martin