[PATCH] D125499: Enabling the detection of devtoolset-11 toolchain.

Kamau Bridgeman via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu May 12 13:18:53 PDT 2022


kamaub created this revision.
kamaub added reviewers: phosek, tstellar, nemanjai, lei.
Herald added a project: All.
kamaub requested review of this revision.
Herald added subscribers: cfe-commits, MaskRay.
Herald added a project: clang.

This patch allows systems to build the llvm-project with the devtoolset-11
toolchain.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D125499

Files:
  clang/lib/Driver/ToolChains/Gnu.cpp


Index: clang/lib/Driver/ToolChains/Gnu.cpp
===================================================================
--- clang/lib/Driver/ToolChains/Gnu.cpp
+++ clang/lib/Driver/ToolChains/Gnu.cpp
@@ -2151,6 +2151,7 @@
   if (SysRoot.empty() && TargetTriple.getOS() == llvm::Triple::Linux) {
     // Yet, still look for RHEL/CentOS devtoolsets and gcc-toolsets.
     Prefixes.push_back("/opt/rh/gcc-toolset-10/root/usr");
+    Prefixes.push_back("/opt/rh/devtoolset-11/root/usr");
     Prefixes.push_back("/opt/rh/devtoolset-10/root/usr");
     Prefixes.push_back("/opt/rh/devtoolset-9/root/usr");
     Prefixes.push_back("/opt/rh/devtoolset-8/root/usr");


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D125499.429059.patch
Type: text/x-patch
Size: 650 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20220512/948b0ea8/attachment.bin>


More information about the cfe-commits mailing list