diff --git a/clang/lib/Driver/ToolChains/Gnu.cpp b/clang/lib/Driver/ToolChains/Gnu.cpp index ac31a45b557f1..50e70e6d71e1b 100644 --- a/clang/lib/Driver/ToolChains/Gnu.cpp +++ b/clang/lib/Driver/ToolChains/Gnu.cpp @@ -2298,6 +2298,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-15/root/usr"); + 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");