[PATCH] Add support of the next Ubuntu (Ubuntu 24.10 - Oracular Oriol)
authorSylvestre Ledru <sylvestre@debian.org>
Thu, 2 May 2024 20:54:08 +0000 (22:54 +0200)
committerSylvestre Ledru <sylvestre@debian.org>
Mon, 23 Sep 2024 11:23:31 +0000 (13:23 +0200)
Gbp-Pq: Name ubuntu-releases.patch

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

index a8de94163e8b0b79e036861dbd696b639bf039cd..1404e168684821e12ba396a0e1bae95ace34dfcd 100644 (file)
@@ -79,6 +79,7 @@ public:
     UbuntuLunar,
     UbuntuMantic,
     UbuntuNoble,
+    UbuntuOracular,
     UnknownDistro
   };
 
@@ -130,7 +131,7 @@ public:
   }
 
   bool IsUbuntu() const {
-    return DistroVal >= UbuntuHardy && DistroVal <= UbuntuNoble;
+    return DistroVal >= UbuntuHardy && DistroVal <= UbuntuOracular;
   }
 
   bool IsAlpineLinux() const { return DistroVal == AlpineLinux; }
index a7e7f169dc1419e3d64c7acbe047d56753952afe..6f49e641104ccd3b9a533f7483b5f76dad3a9263 100644 (file)
@@ -95,6 +95,7 @@ static Distro::DistroType DetectLsbRelease(llvm::vfs::FileSystem &VFS) {
                     .Case("lunar", Distro::UbuntuLunar)
                     .Case("mantic", Distro::UbuntuMantic)
                     .Case("noble", Distro::UbuntuNoble)
+                    .Case("oracular", Distro::UbuntuOracular)
                     .Default(Distro::UnknownDistro);
   return Version;
 }