config-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: config.guess: On Windows, support MSVC (cl.exe), probably wrapped.


From: Michael Haubenwallner
Subject: Re: config.guess: On Windows, support MSVC (cl.exe), probably wrapped.
Date: Thu, 20 Apr 2017 10:00:26 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.7.1

On 04/19/2017 11:57 PM, Ben Elliston wrote:
> On Wed, Apr 19, 2017 at 07:40:30PM +0200, Michael Haubenwallner wrote:
> 
>> Subject: [PATCH] * config.guess: Support MSVC compiler on Windows.
> 
> Why aren't you just running uname?  There's no need to run a compiler
> to determine the machine architecture.

This is kind of "multilib", where one machine can run binaries of multiple
architectures, like 32bit and 64bit, while uname tells about the underlying
POSIX-like system only (which provides the SHELL).

For example, I'm using x86_64 Cygwin to run cl.exe creating 32bit binaries,
which can be executed, so it's not a "cross"-compile. Now the host triplet
should be i686-pc-winnt, but uname can tell x86_64 (cygwin) only.

/haubi/



reply via email to

[Prev in Thread] Current Thread [Next in Thread]