[PATCH] D111367: [Driver] Change -dumpmachine to respect --target/LLVM_DEFAULT_TARGET_TRIPLE verbatim

Fangrui Song via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Oct 8 12:47:47 PDT 2021


MaskRay added a comment.

Agree that Red Hat GCC switching to `x86_64-redhat-linux-gnu` is the best long-term approach.

> (Edit: @tstellar's approach to make LLVM get a x86_64-redhat-linux-gnu triple avoids that problem, so that sounds good to me.)

Let the `config.guess` removal patch normalize  `x86_64-redhat-linux` to `x86_64-redhat-linux-gnu`? That sounds good to me.
If the patch will do the normalization, I think `-dumpmachine` patch will be unblocked.

We will need to keep `aarch64-redhat-linux` GCC installation detect in `clang/lib/Driver/ToolChains/Gnu.cpp` for an extended period, to be buildable with older GCC still using  `x86_64-redhat-linux`.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D111367/new/

https://reviews.llvm.org/D111367



More information about the cfe-commits mailing list