[clang] [clang] Remove support for really old Ubuntu releases (PR #162778)

Brad Smith via cfe-commits cfe-commits at lists.llvm.org
Thu Oct 9 21:54:58 PDT 2025


https://github.com/brad0 created https://github.com/llvm/llvm-project/pull/162778

After 07ca4db1e1f53876b14e5773e8b9d77c20774fca remove support
for really old and older Ubunutu releases.

>From b9dbf4e55e73c731934afeadf334d8205c775639 Mon Sep 17 00:00:00 2001
From: Brad Smith <brad at comstyle.com>
Date: Fri, 10 Oct 2025 00:51:08 -0400
Subject: [PATCH] [clang] Remove support for really old Ubuntu releases

After 07ca4db1e1f53876b14e5773e8b9d77c20774fca remove support
for really old and older Ubuntu releases.
---
 clang/include/clang/Driver/Distro.h | 7 +------
 clang/lib/Driver/Distro.cpp         | 5 -----
 2 files changed, 1 insertion(+), 11 deletions(-)

diff --git a/clang/include/clang/Driver/Distro.h b/clang/include/clang/Driver/Distro.h
index 5c25592e68ade..008de0dc94b03 100644
--- a/clang/include/clang/Driver/Distro.h
+++ b/clang/include/clang/Driver/Distro.h
@@ -48,11 +48,6 @@ class Distro {
     Fedora,
     Gentoo,
     OpenSUSE,
-    UbuntuHardy,
-    UbuntuIntrepid,
-    UbuntuJaunty,
-    UbuntuKarmic,
-    UbuntuLucid,
     UbuntuMaverick,
     UbuntuNatty,
     UbuntuOneiric,
@@ -135,7 +130,7 @@ class Distro {
   }
 
   bool IsUbuntu() const {
-    return DistroVal >= UbuntuHardy && DistroVal <= UbuntuQuesting;
+    return DistroVal >= UbuntuMaverick && DistroVal <= UbuntuQuesting;
   }
 
   bool IsAlpineLinux() const { return DistroVal == AlpineLinux; }
diff --git a/clang/lib/Driver/Distro.cpp b/clang/lib/Driver/Distro.cpp
index 90e5a390be7eb..8a5a9fc3026a3 100644
--- a/clang/lib/Driver/Distro.cpp
+++ b/clang/lib/Driver/Distro.cpp
@@ -61,11 +61,6 @@ static Distro::DistroType DetectLsbRelease(llvm::vfs::FileSystem &VFS) {
     if (Version == Distro::UnknownDistro &&
         Line.starts_with("DISTRIB_CODENAME="))
       Version = llvm::StringSwitch<Distro::DistroType>(Line.substr(17))
-                    .Case("hardy", Distro::UbuntuHardy)
-                    .Case("intrepid", Distro::UbuntuIntrepid)
-                    .Case("jaunty", Distro::UbuntuJaunty)
-                    .Case("karmic", Distro::UbuntuKarmic)
-                    .Case("lucid", Distro::UbuntuLucid)
                     .Case("maverick", Distro::UbuntuMaverick)
                     .Case("natty", Distro::UbuntuNatty)
                     .Case("oneiric", Distro::UbuntuOneiric)



More information about the cfe-commits mailing list