Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WrWwD-00022V-A6 for pgsql-odbc@arkaria.postgresql.org; Mon, 02 Jun 2014 18:26:25 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1WrWwC-0003os-K8 for pgsql-odbc@arkaria.postgresql.org; Mon, 02 Jun 2014 18:26:24 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1WrWwB-0003oc-LN for pgsql-odbc@postgresql.org; Mon, 02 Jun 2014 18:26:23 +0000 Received: from smtp-outbound-2.vmware.com ([208.91.2.13]) by makus.postgresql.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.80) (envelope-from ) id 1WrWw6-0006Ec-Up for pgsql-odbc@postgresql.org; Mon, 02 Jun 2014 18:26:20 +0000 Received: from sc9-mailhost2.vmware.com (sc9-mailhost2.vmware.com [10.113.161.72]) by smtp-outbound-2.vmware.com (Postfix) with ESMTP id D95D998EAB; Mon, 2 Jun 2014 11:26:16 -0700 (PDT) Received: from zcs-prod-ext-mta-1.vmware.com (zcs-prod-ext-mta-1.vmware.com [10.113.62.223]) by sc9-mailhost2.vmware.com (Postfix) with ESMTP id CADF691757; Mon, 2 Jun 2014 11:26:16 -0700 (PDT) Received: from zcs-prod-ext-mta-1.vmware.com (localhost.localdomain [127.0.0.1]) by zcs-prod-ext-mta-1.vmware.com (Postfix) with ESMTP id 22DF5120030; Mon, 2 Jun 2014 11:26:27 -0700 (PDT) Received: from [192.168.1.90] (zimbra-prod-ext-proxy-vip.vmware.com [10.113.63.87]) by zcs-prod-ext-mta-1.vmware.com (Postfix) with ESMTPSA; Mon, 2 Jun 2014 11:26:26 -0700 (PDT) Message-ID: <538CC1C6.9010007@vmware.com> Date: Mon, 02 Jun 2014 21:26:14 +0300 From: Heikki Linnakangas Organization: VMware User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Icedove/24.5.0 MIME-Version: 1.0 To: Hiroshi Inoue , Michael Paquier CC: PostgreSQL mailing lists Subject: Re: Mentioning CPU for Windows build in docs References: <538C2719.1020405@vmware.com> <538C2A94.4090904@vmware.com> <538C5674.8020407@vmware.com> <538C619A.8000505@tpf.co.jp> <538C660F.50505@vmware.com> <538C9FB2.8050103@tpf.co.jp> In-Reply-To: <538C9FB2.8050103@tpf.co.jp> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -7.6 (-------) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-odbc Precedence: bulk Sender: pgsql-odbc-owner@postgresql.org On 06/02/2014 07:00 PM, Hiroshi Inoue wrote: > (2014/06/02 20:54), Heikki Linnakangas wrote: >> On 06/02/2014 02:35 PM, Inoue, Hiroshi wrote: >>> Official Windows build no longer uses nmake. >>> The binaries are built using MSBuild. >>> Please look at readme_winbuild.txt or winbuild/readme.txt. >> >> Huh? Really? >> >> Why did we switch? What's the advantage of MSBuild over nmake? > > For example, MSBuild can switch the environment (Platform, > VisualStudioVersion or platformToolset) easily. In fact > BuildAll.ps1(bat) builds both 32bit and 64bit drivers. > Or MSBuild can detect the changes of related files (e.g. > header files). > > IMHO nmake is needed only for vc9 or before. Well that makes one thing clear then: nobody cares about win32.mak anymore. win64.mak can be used to build both 32-bit and 64-bit binaries, and since the official binaries are built with the MSBuild method, keeping the old flags & other configuration you got with win32.mak is not important anymore. I'll go remove it. FWIW, I find the MSBuild stuff to be way more complicated than the nmake makefiles, and it has an extra dependency (PowerShell). I just tried it and I don't like the first impression: the configuration windows launched by editConfiguration.ps1 doesn't fit in my screen. I wonder what options I'm missing. I can edit the configuration.xml file by hand, but I don't find that very comfortable. The nmake files are certainly not perfect - there's a bunch of obsolete cruft there - but let's clean up those rather than throw the whole thing away and start from scratch. That said, I don't have any objection to keeping the MSbuild stuff if you prefer that, but let's continue to maintain win64.mak. I can see one difference now with the MSBuild stuff and the win64.mak method: With the MSBuild method, the output directory is called "AMD64", but with "nmake /f win64.mak", it's called "x64". And for 32-bit builds, they are called "Release" and "x86", respectively. I would prefer nmake's naming scheme for consistency, as it's always [Debug][ANSI]. Or even better, let's switch to a new scheme that's more clear. I propose that we call the output directories with the following names: x86_Unicode_Release x86_Unicode_Debug x86_ANSI_Release x86_ANSI_Debug x64_Unicode_Release x64_Unicode_Debug x64_ANSI_Release x64_ANSI_Debug For comparison, this is what MSBuild currently uses (in the same order): Release Debug MultibyteRelease MultibyteDebug AMD64 AMD64Debug AMD64ANSIRelease AMD64ANSIDebug That's pretty inconsistent, but I believe it's because of historical reasons. The directory naming was changed from win32.mak to win64.mak, and you kept the names the way you got if you built 32-bit versions with win32.mak and 64-bit versions with win64.mak. - Heikki -- Sent via pgsql-odbc mailing list (pgsql-odbc@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-odbc