mirror of
git://git.savannah.gnu.org/config.git
synced 2025-05-26 09:06:38 +12:00

In older times, MinGW (GCC toolchain with modified windows headers) was the only free software toolchain for Windows. But now, LLVM has support both for MinGW ABI and Microsoft's own. The distinction matters for C++ more than C. LLVM[1], Rust[2], and other projects have taken to differentiating these two as `...windows-gnu` vs `...windows-msvc`. I think that makes a lot of sense, as it correctly identifiers both their commonalities and their differences. A lot of MinGW-supporting software, most notably GCC itself, will presumably continue to use configs like x86_64-pc-mingw32 and i686-pc-mingw32. That's fine; this patch doesn't normalize them away (like LLVM does) or remove them! If and when that software wants to support the MSVC ABI without requiring MSVC itself, they can switch to these newer configurations. [1]:a18266473b/llvm/unittests/TargetParser/TripleTest.cpp (L1907-L1951)
[2]:36fb58e433/compiler/rustc_target/src/spec/mod.rs (L1255-L1271)