Driver: Add gcc search path for RHEL devtoolset-7
authorTom Stellard <tstellar@redhat.com>
Wed, 11 Apr 2018 22:29:35 +0000 (22:29 +0000)
committerTom Stellard <tstellar@redhat.com>
Wed, 11 Apr 2018 22:29:35 +0000 (22:29 +0000)
Reviewers: bruno

Reviewed By: bruno

Subscribers: bruno, cfe-commits

Differential Revision: https://reviews.llvm.org/D44130

llvm-svn: 329854

clang/lib/Driver/ToolChains/Gnu.cpp

index f70e5a5..3cf66e3 100644 (file)
@@ -1785,6 +1785,7 @@ void Generic_GCC::GCCInstallationDetector::AddDefaultGCCPrefixes(
   // 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");