[clang] eaa6a28 - Add support of the next Ubuntu (Ubuntu 26.04 - Resolute Raccoon)

Sylvestre Ledru via cfe-commits cfe-commits at lists.llvm.org
Sun Oct 12 00:44:10 PDT 2025


Author: Sylvestre Ledru
Date: 2025-10-12T09:44:04+02:00
New Revision: eaa6a28757edea72d97e245125f8e1128b0bdef2

URL: https://github.com/llvm/llvm-project/commit/eaa6a28757edea72d97e245125f8e1128b0bdef2
DIFF: https://github.com/llvm/llvm-project/commit/eaa6a28757edea72d97e245125f8e1128b0bdef2.diff

LOG: Add support of the next Ubuntu (Ubuntu 26.04 - Resolute Raccoon)

Added: 
    

Modified: 
    clang/include/clang/Driver/Distro.h
    clang/lib/Driver/Distro.cpp

Removed: 
    


################################################################################
diff  --git a/clang/include/clang/Driver/Distro.h b/clang/include/clang/Driver/Distro.h
index 008de0dc94b03..a515cbf91ccd6 100644
--- a/clang/include/clang/Driver/Distro.h
+++ b/clang/include/clang/Driver/Distro.h
@@ -79,6 +79,7 @@ class Distro {
     UbuntuOracular,
     UbuntuPlucky,
     UbuntuQuesting,
+    UbuntuResolute,
     UnknownDistro
   };
 
@@ -130,7 +131,7 @@ class Distro {
   }
 
   bool IsUbuntu() const {
-    return DistroVal >= UbuntuMaverick && DistroVal <= UbuntuQuesting;
+    return DistroVal >= UbuntuMaverick && DistroVal <= UbuntuResolute;
   }
 
   bool IsAlpineLinux() const { return DistroVal == AlpineLinux; }

diff  --git a/clang/lib/Driver/Distro.cpp b/clang/lib/Driver/Distro.cpp
index 8a5a9fc3026a3..838e087475ccf 100644
--- a/clang/lib/Driver/Distro.cpp
+++ b/clang/lib/Driver/Distro.cpp
@@ -92,6 +92,7 @@ static Distro::DistroType DetectLsbRelease(llvm::vfs::FileSystem &VFS) {
                     .Case("oracular", Distro::UbuntuOracular)
                     .Case("plucky", Distro::UbuntuPlucky)
                     .Case("questing", Distro::UbuntuQuesting)
+                    .Case("resolute", Distro::UbuntuResolute)
                     .Default(Distro::UnknownDistro);
   return Version;
 }


        


More information about the cfe-commits mailing list