[clang] 7c5eb6a - [Clang][Driver] Add gcc-13 toolset path on RHEL (#174464)
via cfe-commits
cfe-commits at lists.llvm.org
Tue Jan 6 06:33:02 PST 2026
Author: Jan Patrick Lehr
Date: 2026-01-06T15:32:58+01:00
New Revision: 7c5eb6ab0cbfeb29f980c8fa17c0ee3ca5270984
URL: https://github.com/llvm/llvm-project/commit/7c5eb6ab0cbfeb29f980c8fa17c0ee3ca5270984
DIFF: https://github.com/llvm/llvm-project/commit/7c5eb6ab0cbfeb29f980c8fa17c0ee3ca5270984.diff
LOG: [Clang][Driver] Add gcc-13 toolset path on RHEL (#174464)
Adding this additional path to enable clang+offload to be easily
buildable in RHEL-based distros with GCC 13 toolset.
Added:
Modified:
clang/lib/Driver/ToolChains/Gnu.cpp
Removed:
################################################################################
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");
More information about the cfe-commits
mailing list