[llvm] [Triple] Ignore the vendor field for MinGW, wrt LTO/IR compatibility (PR #122801)

Mateusz MikuĊ‚a via llvm-commits llvm-commits at lists.llvm.org
Mon Jan 13 16:53:27 PST 2025


================
@@ -2024,6 +2024,10 @@ bool Triple::isLittleEndian() const {
 }
 
 bool Triple::isCompatibleWith(const Triple &Other) const {
+  // On MinGW, C code is usually built with a "w64" vendor, while Rust
+  // often uses a "pc" vendor.
----------------
mati865 wrote:

Is `uwp-windows-gnu` compatible the other two mentioned variants? I think so but wanted to double-check.
Not sure if it's even a real triple in LLVM. Rust has it, but the GNU env is unmaintained: https://doc.rust-lang.org/rustc/platform-support.html

https://github.com/llvm/llvm-project/pull/122801


More information about the llvm-commits mailing list