[clang] [clang] Updating to include gcc-toolsets 13 and 14 (PR #128438)

Bill Blum via cfe-commits cfe-commits at lists.llvm.org
Mon Feb 24 08:26:44 PST 2025


https://github.com/roadswitcher updated https://github.com/llvm/llvm-project/pull/128438

>From ed6298c9cf0a778411067d7a10c9a9c54fbb6266 Mon Sep 17 00:00:00 2001
From: Bill Blum <bill.blum at gmail.com>
Date: Sun, 23 Feb 2025 16:54:11 -0500
Subject: [PATCH] Updating to include gcc-toolsets 13 and 14 since they are now
 generally available.

---
 clang/lib/Driver/ToolChains/Gnu.cpp | 2 ++
 1 file changed, 2 insertions(+)

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");



More information about the cfe-commits mailing list