pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Heikki Linnakangas <hlinnakangas@vmware.com>
To: Michael Paquier <michael.paquier@gmail.com>
To: PostgreSQL mailing lists <pgsql-odbc@postgresql.org>
Subject: Re: Mentioning CPU for Windows build in docs
Date: Mon, 02 Jun 2014 10:26:17 +0300
Message-ID: <538C2719.1020405@vmware.com> (raw)
In-Reply-To: <CAB7nPqTTMCxqSrkXtOEZJfs=v4bxFvtqZFZwTT+n19xoG0oqNg@mail.gmail.com>
References: <CAB7nPqTTMCxqSrkXtOEZJfs=v4bxFvtqZFZwTT+n19xoG0oqNg@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-odbc>

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:
>       <td>Release(default), or Debug</td>
>       </tr>
>     <tr>
> +    <td>CPU</td>
> +    <td>Processor description: x64, x86, AMD64, etc.</td>
> +    </tr>
> +  <tr>
>       <td>PG_INC</td>
>       <td>$(PROGRAMFILES)\PostgreSQL\9.2\include</td>
>       </tr>

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



view thread (23+ messages)  latest in thread

Message-ID: <538C2719.1020405@vmware.com>
Permalink:  ../538C2719.1020405@vmware.com/
Also on:    postgresql.org/message-id/538C2719.1020405@vmware.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-odbc@postgresql.org
  Cc: hlinnakangas@vmware.com, michael.paquier@gmail.com
  Subject: Re: Mentioning CPU for Windows build in docs
  In-Reply-To: <538C2719.1020405@vmware.com>
  References: <CAB7nPqTTMCxqSrkXtOEZJfs=v4bxFvtqZFZwTT+n19xoG0oqNg@mail.gmail.com> <538C2719.1020405@vmware.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox