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.
config-patches mailing list