Also look for devtoolset-9 gcc toolchain
authorStephan Dollberg <stephan.dollberg@gmail.com>
Thu, 16 Apr 2020 09:17:10 +0000 (11:17 +0200)
committerBenjamin Kramer <benny.kra@googlemail.com>
Thu, 16 Apr 2020 09:17:39 +0000 (11:17 +0200)
devtoolset-9 has been out for a while so also look for it.

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

clang/lib/Driver/ToolChains/Gnu.cpp

index d20d629..0ea33fc 100644 (file)
@@ -1977,6 +1977,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-9/root/usr");
     Prefixes.push_back("/opt/rh/devtoolset-8/root/usr");
     Prefixes.push_back("/opt/rh/devtoolset-7/root/usr");
     Prefixes.push_back("/opt/rh/devtoolset-6/root/usr");