Update the list of Ubuntu release names
authorGraham Inggs <ginggs@debian.org>
Thu, 11 Jan 2024 13:15:09 +0000 (14:15 +0100)
committerSylvestre Ledru <sylvestre@debian.org>
Thu, 11 Jan 2024 13:15:09 +0000 (14:15 +0100)
Forwarded: no
Last-Update: 2023-04-29

Gbp-Pq: Name ubuntu-releases.patch

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

index 8291f6575a71146cc83889798b515775e5cd383d..a8de94163e8b0b79e036861dbd696b639bf039cd 100644 (file)
@@ -78,6 +78,7 @@ public:
     UbuntuKinetic,
     UbuntuLunar,
     UbuntuMantic,
+    UbuntuNoble,
     UnknownDistro
   };
 
@@ -129,7 +130,7 @@ public:
   }
 
   bool IsUbuntu() const {
-    return DistroVal >= UbuntuHardy && DistroVal <= UbuntuMantic;
+    return DistroVal >= UbuntuHardy && DistroVal <= UbuntuNoble;
   }
 
   bool IsAlpineLinux() const { return DistroVal == AlpineLinux; }
index 6e0087565941ea9e29837fc6ca85cfc43816ee03..5d0d1f681e0b8b199288788e879f8f25fe1e148a 100644 (file)
@@ -94,6 +94,7 @@ static Distro::DistroType DetectLsbRelease(llvm::vfs::FileSystem &VFS) {
                     .Case("kinetic", Distro::UbuntuKinetic)
                     .Case("lunar", Distro::UbuntuLunar)
                     .Case("mantic", Distro::UbuntuMantic)
+                    .Case("noble", Distro::UbuntuNoble)
                     .Default(Distro::UnknownDistro);
   return Version;
 }