Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WrMde-0000Oc-JN for pgsql-odbc@arkaria.postgresql.org; Mon, 02 Jun 2014 07:26:34 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1WrMdd-0003bH-14 for pgsql-odbc@arkaria.postgresql.org; Mon, 02 Jun 2014 07:26:33 +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 1WrMdc-0003bB-Cv for pgsql-odbc@postgresql.org; Mon, 02 Jun 2014 07:26:32 +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 1WrMdT-0002Tc-5H for pgsql-odbc@postgresql.org; Mon, 02 Jun 2014 07:26:29 +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 C281198825; Mon, 2 Jun 2014 00:26:19 -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 BCDBDA86B5; Mon, 2 Jun 2014 00:26:19 -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 EC3F412002A; Mon, 2 Jun 2014 00:26:29 -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 00:26:29 -0700 (PDT) Message-ID: <538C2719.1020405@vmware.com> Date: Mon, 02 Jun 2014 10:26:17 +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 , PostgreSQL mailing lists Subject: Re: Mentioning CPU for Windows build in docs References: In-Reply-To: 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 05/19/2014 09:51 AM, Michael Paquier wrote: > Hi, > > While looking at the docs, I noticed that their is no mention to CPU > for a Windows build with nmake, but it is essential to provide a value > for it or build fails (see for example LINK32_FLAGS in win64.mak). > Patch attached somewhat corrects that. > > 20140519_pgodbc_win_docs.patch > > diff --git a/docs/win32-compilation.html b/docs/win32-compilation.html > index cb63273..7dcf454 100644 > --- a/docs/win32-compilation.html > +++ b/docs/win32-compilation.html > @@ -96,6 +96,10 @@ The following build options may be used: > Release(default), or Debug > > > + CPU > + Processor description: x64, x86, AMD64, etc. > + > + > PG_INC > $(PROGRAMFILES)\PostgreSQL\9.2\include > Hmm, are all of those valid values? Does it make sense to use win32.mak with CPU=AMD64, or win64.mak with CPU=x86? If not, I suggest that we just hardcode CPU=x86 in win32.mak and CPU=x64 in win64.mak. CPU=AMD64 seems to be mapped to CPUTYPE=x64 in win64.mak, so ISTM that AMD64 and x64 are just synonyms. 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. - Heikki -- Sent via pgsql-odbc mailing list (pgsql-odbc@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-odbc