[clang] [Clang][Driver] Add gcc-13 toolset path on RHEL (PR #174464)
via cfe-commits
cfe-commits at lists.llvm.org
Mon Jan 5 11:10:07 PST 2026
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-clang-driver
Author: Jan Patrick Lehr (jplehr)
<details>
<summary>Changes</summary>
Adding this additional path to enable clang+offload to be easily buildable in RHEL-based distros with GCC 13 toolset.
---
Full diff: https://github.com/llvm/llvm-project/pull/174464.diff
1 Files Affected:
- (modified) clang/lib/Driver/ToolChains/Gnu.cpp (+1)
``````````diff
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");
``````````
</details>
https://github.com/llvm/llvm-project/pull/174464
More information about the cfe-commits
mailing list