[PATCH] D44130: Driver: Add gcc search path for RHEL devtoolset-7

Tom Stellard via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Mar 5 18:02:56 PST 2018


tstellar created this revision.

Repository:
  rC Clang

https://reviews.llvm.org/D44130

Files:
  lib/Driver/ToolChains/Gnu.cpp


Index: lib/Driver/ToolChains/Gnu.cpp
===================================================================
--- lib/Driver/ToolChains/Gnu.cpp
+++ lib/Driver/ToolChains/Gnu.cpp
@@ -1802,6 +1802,7 @@
   // Non-Solaris is much simpler - most systems just go with "/usr".
   if (SysRoot.empty() && TargetTriple.getOS() == llvm::Triple::Linux) {
     // Yet, still look for RHEL devtoolsets.
+    Prefixes.push_back("/opt/rh/devtoolset-7/root/usr");
     Prefixes.push_back("/opt/rh/devtoolset-6/root/usr");
     Prefixes.push_back("/opt/rh/devtoolset-4/root/usr");
     Prefixes.push_back("/opt/rh/devtoolset-3/root/usr");


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D44130.137113.patch
Type: text/x-patch
Size: 616 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20180306/3735918e/attachment.bin>


More information about the cfe-commits mailing list