https://github.com/jplehr created https://github.com/llvm/llvm-project/pull/174464
Adding this additional path to enable clang+offload to be easily buildable in RHEL-based distros with GCC 13 toolset. >From 47f55b8d48ded15e230c283a6e418503e317e66e Mon Sep 17 00:00:00 2001 From: JP Lehr <[email protected]> Date: Mon, 5 Jan 2026 13:07:49 -0600 Subject: [PATCH] [Clang][Driver] Add gcc-13 toolset path on RHEL Adding this additional path to enable clang+offload to be easily buildable in RHEL-based distros with GCC 13 toolset. --- clang/lib/Driver/ToolChains/Gnu.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/clang/lib/Driver/ToolChains/Gnu.cpp b/clang/lib/Driver/ToolChains/Gnu.cpp index 1bfcd1f4f3a7c..7ecdbe7c57650 100644 --- a/clang/lib/Driver/ToolChains/Gnu.cpp +++ b/clang/lib/Driver/ToolChains/Gnu.cpp @@ -2293,6 +2293,7 @@ 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-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"); _______________________________________________ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
