Update the list of Ubuntu release names
authorGraham Inggs <ginggs@debian.org>
Mon, 11 Sep 2023 13:40:42 +0000 (14:40 +0100)
committerGianfranco Costamagna <locutusofborg@debian.org>
Mon, 11 Sep 2023 13:40:42 +0000 (14:40 +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 1aaf93ddb7c43ba8202e53288a934f9c76a13e2b..a4f70e6723107e08f0a6a5bf4dfc0ed16f2bce33 100644 (file)
@@ -77,6 +77,7 @@ public:
     UbuntuJammy,
     UbuntuKinetic,
     UbuntuLunar,
+    UbuntuMantic,
     UnknownDistro
   };
 
@@ -128,7 +129,7 @@ public:
   }
 
   bool IsUbuntu() const {
-    return DistroVal >= UbuntuHardy && DistroVal <= UbuntuLunar;
+    return DistroVal >= UbuntuHardy && DistroVal <= UbuntuMantic;
   }
 
   bool IsAlpineLinux() const { return DistroVal == AlpineLinux; }
index 87a0c5a58511561a4eac9e651e313542e638d2ca..c62fe07a46a2baedde1a81ad4dac6f18e98ce455 100644 (file)
@@ -93,6 +93,7 @@ static Distro::DistroType DetectLsbRelease(llvm::vfs::FileSystem &VFS) {
                     .Case("jammy", Distro::UbuntuJammy)
                     .Case("kinetic", Distro::UbuntuKinetic)
                     .Case("lunar", Distro::UbuntuLunar)
+                    .Case("mantic", Distro::UbuntuMantic)
                     .Default(Distro::UnknownDistro);
   return Version;
 }