[PATCH] D110900: Triple: Add RedHat vendor

Aaron Puchert via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Oct 5 16:19:58 PDT 2021


aaronpuchert added a comment.

In D110900#3043415 <https://reviews.llvm.org/D110900#3043415>, @hvdijk wrote:

> That should already happen, `x86_64-redhat-linux` is in `X86_64Triples` (https://github.com/llvm/llvm-project/blob/main/clang/lib/Driver/ToolChains/Gnu.cpp), so any GCC install that uses `x86_64-redhat-linux` as the triple name should be picked up by LLVM/clang regardless of whether the LLVM target includes `-gnu`.

There seem to be efforts to clean those up, see e.g. D109727 <https://reviews.llvm.org/D109727>.

In D110900#3043521 <https://reviews.llvm.org/D110900#3043521>, @tstellar wrote:

> It picks the first triple from the list that is installed on your system.  So if you also have an x86_64-linux-gnu gcc installation on your system, it will pick that one over x86_64-redhat-linux.

Is that something people do? But yeah, just picking the first one from the list doesn't sound great.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D110900



More information about the llvm-commits mailing list