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

Bill Blum via cfe-commits cfe-commits at lists.llvm.org
Sun Feb 23 14:18:14 PST 2025


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

Updating clang/lib/Driver to detect the newer gcc-toolchain versions.

( submitted to llvm-commits mailing list )

>From a0eb0bcc139d23294f8013da2dcc15adcaa8ef55 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