[PATCH] Add support of the next Ubuntu (Ubuntu 25.04 - Plucky Puffin)
authorSylvestre Ledru <sylvestre@debian.org>
Thu, 17 Oct 2024 19:32:20 +0000 (21:32 +0200)
committerSylvestre Ledru <sylvestre@debian.org>
Wed, 18 Dec 2024 09:01:43 +0000 (10:01 +0100)
Gbp-Pq: Name ubuntu-plucky.patch

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

index 1404e168684821e12ba396a0e1bae95ace34dfcd..b4d485dac8a269dab8f888202b62284773e6c939 100644 (file)
@@ -80,6 +80,7 @@ public:
     UbuntuMantic,
     UbuntuNoble,
     UbuntuOracular,
+    UbuntuPlucky,
     UnknownDistro
   };
 
@@ -131,7 +132,7 @@ public:
   }
 
   bool IsUbuntu() const {
-    return DistroVal >= UbuntuHardy && DistroVal <= UbuntuOracular;
+    return DistroVal >= UbuntuHardy && DistroVal <= UbuntuPlucky;
   }
 
   bool IsAlpineLinux() const { return DistroVal == AlpineLinux; }
index 6f49e641104ccd3b9a533f7483b5f76dad3a9263..3d1bce027f664d9dfd717e29af9641e3400e2652 100644 (file)
@@ -96,6 +96,7 @@ static Distro::DistroType DetectLsbRelease(llvm::vfs::FileSystem &VFS) {
                     .Case("mantic", Distro::UbuntuMantic)
                     .Case("noble", Distro::UbuntuNoble)
                     .Case("oracular", Distro::UbuntuOracular)
+                    .Case("plucky", Distro::UbuntuPlucky)
                     .Default(Distro::UnknownDistro);
   return Version;
 }