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>
Cc: PostgreSQL mailing lists <pgsql-odbc@postgresql.org>
Subject: Re: Mentioning CPU for Windows build in docs
Date: Mon, 02 Jun 2014 13:48:20 +0300
Message-ID: <538C5674.8020407@vmware.com> (raw)
In-Reply-To: <538C2A94.4090904@vmware.com>
References: <CAB7nPqTTMCxqSrkXtOEZJfs=v4bxFvtqZFZwTT+n19xoG0oqNg@mail.gmail.com>
	<538C2719.1020405@vmware.com>
	<CAB7nPqRtwVV0YP9JtxjzFs5oNxeeiO+YBNwXfpasQr31kG4JHQ@mail.gmail.com>
	<538C2A94.4090904@vmware.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-odbc>

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



view thread (23+ messages)  latest in thread

Message-ID: <538C5674.8020407@vmware.com>
Permalink:  ../538C5674.8020407@vmware.com/
Also on:    postgresql.org/message-id/538C5674.8020407@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: <538C5674.8020407@vmware.com>
  References: <CAB7nPqTTMCxqSrkXtOEZJfs=v4bxFvtqZFZwTT+n19xoG0oqNg@mail.gmail.com> <538C2719.1020405@vmware.com> <CAB7nPqRtwVV0YP9JtxjzFs5oNxeeiO+YBNwXfpasQr31kG4JHQ@mail.gmail.com> <538C2A94.4090904@vmware.com> <538C5674.8020407@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