diff --git a/clang/lib/Driver/ToolChains/Gnu.cpp b/clang/lib/Driver/ToolChains/Gnu.cpp index f56eeda3cb5f6..b95fb379f9b0e 100644 --- a/clang/lib/Driver/ToolChains/Gnu.cpp +++ b/clang/lib/Driver/ToolChains/Gnu.cpp @@ -2381,6 +2381,8 @@ void Generic_GCC::GCCInstallationDetector::AddDefaultGCCPrefixes( D.getVFS().exists("/opt/rh")) { // TODO: We may want to remove this, since the functionality // can be achieved using config files. + Prefixes.push_back("/opt/rh/gcc-toolset-14/root/usr"); + Prefixes.push_back("/opt/rh/gcc-toolset-13/root/usr"); Prefixes.push_back("/opt/rh/gcc-toolset-12/root/usr"); Prefixes.push_back("/opt/rh/gcc-toolset-11/root/usr"); Prefixes.push_back("/opt/rh/gcc-toolset-10/root/usr");