[clang] [clang] Updating to include gcc-toolsets 13 and 14 (PR #128438)
via cfe-commits
cfe-commits at lists.llvm.org
Sun Feb 23 14:18:59 PST 2025
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-clang-driver
@llvm/pr-subscribers-clang
Author: Bill Blum (roadswitcher)
<details>
<summary>Changes</summary>
Updating clang/lib/Driver to detect the newer gcc-toolchain versions.
( submitted to llvm-commits mailing list )
---
Full diff: https://github.com/llvm/llvm-project/pull/128438.diff
1 Files Affected:
- (modified) clang/lib/Driver/ToolChains/Gnu.cpp (+2)
``````````diff
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");
``````````
</details>
https://github.com/llvm/llvm-project/pull/128438
More information about the cfe-commits
mailing list