Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WrQWR-0007i1-G8 for pgsql-odbc@arkaria.postgresql.org; Mon, 02 Jun 2014 11:35:23 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1WrQWQ-0004h5-M7 for pgsql-odbc@arkaria.postgresql.org; Mon, 02 Jun 2014 11:35:22 +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 1WrQWO-0004fg-FB for pgsql-odbc@postgresql.org; Mon, 02 Jun 2014 11:35:20 +0000 Received: from sd.tpf.co.jp ([210.161.239.34]) by makus.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1WrQWK-0006rT-5R for pgsql-odbc@postgresql.org; Mon, 02 Jun 2014 11:35:18 +0000 Received: (qmail 17637 invoked by uid 512); 2 Jun 2014 11:35:14 -0000 X-Authentication: inoue was authenticated by sd.tpf.co.jp at 2 Jun 2014 11:35:14 -0000 Received: from unknown (HELO ?192.168.1.8?) (183.76.63.174) by sd.tpf.co.jp with SMTP; 2 Jun 2014 11:35:14 -0000 Message-ID: <538C619A.8000505@tpf.co.jp> Date: Mon, 02 Jun 2014 20:35:54 +0900 From: "Inoue, Hiroshi" User-Agent: Mozilla/5.0 (Windows NT 6.2; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.5.0 MIME-Version: 1.0 To: Michael Paquier , Heikki Linnakangas 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> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -2.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 Official Windows build no longer uses nmake. The binaries are built using MSBuild. Please look at readme_winbuild.txt or winbuild/readme.txt. regards, Hiroshi Inoue (2014/06/02 20:11), Michael Paquier wrote: > On Mon, Jun 2, 2014 at 7:48 PM, Heikki Linnakangas > wrote: >> 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. > It is not mandatory to use Visual studio to compile the code as you > can do it as well with a simple Windows SDK prompt and nmake. Wouldn't > it be better to return an error if TARGET_CPU is not set? > >> Ideally, we could remove win32.mak altogether. But I don't understand the >> differences well enough yet to go ahead with that. Thoughts? > I'd vote +1 for removing win32.mak and rename win64.mak to win.mak. > The only differences being that win32 can link optionaly to mt, a > multithread lib, while win64 has support for gss. It is hard to guess > why each option is available only on one Makefile but not the other, > so we'd better merge them... -- Sent via pgsql-odbc mailing list (pgsql-odbc@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-odbc