https://github.com/oreiche created 
https://github.com/llvm/llvm-project/pull/196111

None

>From 2019a58ed30e018ce614104749ba9f95d9592ffb Mon Sep 17 00:00:00 2001
From: Oliver Reiche <[email protected]>
Date: Wed, 6 May 2026 18:33:56 +0200
Subject: [PATCH] Add support for Ubuntu 26.10 - Stonking Stingray

---
 clang/include/clang/Driver/Distro.h | 3 ++-
 clang/lib/Driver/Distro.cpp         | 1 +
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/clang/include/clang/Driver/Distro.h 
b/clang/include/clang/Driver/Distro.h
index 0e17b30eb7e8d..aa4b3e1280920 100644
--- a/clang/include/clang/Driver/Distro.h
+++ b/clang/include/clang/Driver/Distro.h
@@ -74,6 +74,7 @@ class Distro {
     UbuntuPlucky,
     UbuntuQuesting,
     UbuntuResolute,
+    UbuntuStonking,
     UnknownDistro
   };
 
@@ -125,7 +126,7 @@ class Distro {
   }
 
   bool IsUbuntu() const {
-    return DistroVal >= UbuntuQuantal && DistroVal <= UbuntuResolute;
+    return DistroVal >= UbuntuQuantal && DistroVal <= UbuntuStonking;
   }
 
   bool IsAlpineLinux() const { return DistroVal == AlpineLinux; }
diff --git a/clang/lib/Driver/Distro.cpp b/clang/lib/Driver/Distro.cpp
index 37be87b57b9a7..585497e998372 100644
--- a/clang/lib/Driver/Distro.cpp
+++ b/clang/lib/Driver/Distro.cpp
@@ -89,6 +89,7 @@ static Distro::DistroType 
DetectLsbRelease(llvm::vfs::FileSystem &VFS) {
                     .Case("plucky", Distro::UbuntuPlucky)
                     .Case("questing", Distro::UbuntuQuesting)
                     .Case("resolute", Distro::UbuntuResolute)
+                    .Case("stonking", Distro::UbuntuStonking)
                     .Default(Distro::UnknownDistro);
   return Version;
 }

_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to