[llvm-commits] [Patch] Support for host triple discovery on Windows

Aaron Ballman aaron at aaronballman.com
Sat Oct 15 06:27:27 PDT 2011


On Sat, Oct 15, 2011 at 2:13 AM, Anton Korobeynikov
<anton at korobeynikov.info> wrote:
>> I think my biggest worry has to do with MinGW.  If the library was
>> built with MinGW, then the host triple in config.h comes back as
>> i686-pc-mingw.  But if I'm running on x86 Windows, I would expect to
>> see i686-pc-win32 instead.
> mingw triple is correct here. "-win32" is reserved for vcpp-style builds.
>
>>  My secondary, more minor, concern is
>> whether it would be strange to be running an i786 or i586 and see i686
>> in the triple.
> This does not matter so much. i386-mingw is also a good triple here :)

So I'm guessing the FIXME is incorrect and should be removed.  Is the
one in the *nix Host.inc incorrect as well?

Also, for my own edification: I thought the host triple was the triple
to be used when the user doesn't specify one manually, aka the
"default build" triple.  If that's the case, why is mingw a more
reasonable triple than win32 for a Windows compile?  Or am I
misunderstanding the intention of the triple?

Thanks!

~Aaron




More information about the llvm-commits mailing list