[PATCH] D108908: [clang] Add gcc-toolset-10 support (RHEL/CentOS 8)

Stephan Dollberg via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Aug 30 03:16:41 PDT 2021


stephan.dollberg accepted this revision.
stephan.dollberg added a comment.
This revision is now accepted and ready to land.

LGTM but probably want to apply clang-format suggestion.



================
Comment at: clang/lib/Driver/ToolChains/Gnu.cpp:2055
   if (SysRoot.empty() && TargetTriple.getOS() == llvm::Triple::Linux) {
+    // CentOS 8
+    Prefixes.push_back("/opt/rh/gcc-toolset-10/root/usr");
----------------
Comment only says CentOS while title also says RHEL. I assume it applies to both?

Might also want to merge with the comment below as they are kind of the same thing.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D108908



More information about the cfe-commits mailing list