[vlc-devel] [PATCH] contrib: Treat windows-gnu as an alias for mingw32

Martin Storsjö martin at martin.st
Mon Nov 5 10:40:09 CET 2018


On Mon, 5 Nov 2018, Steve Lhomme wrote:

> On 05/11/2018 10:07, Martin Storsjö wrote:
>> LLVM internally normalizes the "mingw32" part of a triplet into
>> windows-gnu, and when detecting the toolchain with $CC -dumpmachine,
>> this wouldn't match the rest of contribs' rules for detecting a
>> supported windows environment.
>>
>> This allows building contribs with llvm-mingw as the native compiler.
>
> No objection but why don't they use mingw32 ?

They internally normalize all the triplets into quadruples, so e.g. 
x86_64-w64-mingw32 ends up as x86_64-w64-windows-gnu, whereas msvc targets 
might be e.g. x86_64-pc-windows-msvc. So you have OS == windows, 
Environment == gnu/msvc (in addition to arch and vendor).

// Martin


More information about the vlc-devel mailing list