Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WrPnB-0006NY-Tq for pgsql-odbc@arkaria.postgresql.org; Mon, 02 Jun 2014 10:48:38 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1WrPnA-0004EY-1h for pgsql-odbc@arkaria.postgresql.org; Mon, 02 Jun 2014 10:48:36 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1WrPn9-0004ER-94 for pgsql-odbc@postgresql.org; Mon, 02 Jun 2014 10:48:35 +0000 Received: from smtp-outbound-1.vmware.com ([208.91.2.12]) by magus.postgresql.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.80) (envelope-from ) id 1WrPn2-0006B3-Fz for pgsql-odbc@postgresql.org; Mon, 02 Jun 2014 10:48:33 +0000 Received: from sc9-mailhost1.vmware.com (sc9-mailhost1.vmware.com [10.113.161.71]) by smtp-outbound-1.vmware.com (Postfix) with ESMTP id C2C2B99960; Mon, 2 Jun 2014 03:48:22 -0700 (PDT) Received: from zcs-prod-ext-mta-1.vmware.com (zcs-prod-ext-mta-1.vmware.com [10.113.62.223]) by sc9-mailhost1.vmware.com (Postfix) with ESMTP id BC0FBEC40E; Mon, 2 Jun 2014 03:48:22 -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 01DC0120030; Mon, 2 Jun 2014 03:48:32 -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 03:48:32 -0700 (PDT) Message-ID: <538C5674.8020407@vmware.com> Date: Mon, 02 Jun 2014 13:48:20 +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: Michael Paquier CC: PostgreSQL mailing lists Subject: Re: Mentioning CPU for Windows build in docs References: <538C2719.1020405@vmware.com> <538C2A94.4090904@vmware.com> In-Reply-To: <538C2A94.4090904@vmware.com> 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 10:41 AM, Heikki Linnakangas wrote: > On 06/02/2014 10:33 AM, Michael Paquier wrote: >>> This MSDN page lists the valid values: >>> http://msdn.microsoft.com/en-us/library/5wy54dk2.aspx. (the makefile passes >>> /MACHINE:{CPUTYPE} to the compiler). We don't support compiling for ARM with >>> the Windows toolchain, and I have no idea what EBC means, so that leaves >>> just x64 and x86 as the valid options. >> Let's just hardcode them and be done. Do you need a patch? > > Nah, I'll just do it. Thanks! > > (I'm trying to set up the toolchain to build Windows binaries and > installers ATM, and also trying to clean up and update the docs while > I'm at it.) So, I started looking at win32.mak and win64.mak, and couldn't resist cleaning them up some more. I removed the CPU argument altogether, but I also removed all references to it within win64.mak, and replaced them with TARGET_CPU. The "setenv /x86" or "setenv /x64" command that you can use in the Visual Studio command line environment to choose the target platform sets TARGET_CPU. So now you can use win64.mak to build 32-bit binaries too, just do "setenv /x86" first. Ideally, we could remove win32.mak altogether. But I don't understand the differences well enough yet to go ahead with that. Thoughts? - Heikki -- Sent via pgsql-odbc mailing list (pgsql-odbc@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-odbc