Add support of the next Ubuntu (Ubuntu 23.04 - Lunar Lobster)
authorSylvestre Ledru <sylvestre@debian.org>
Sat, 5 Nov 2022 21:35:54 +0000 (22:35 +0100)
committerSylvestre Ledru <sylvestre@debian.org>
Sat, 5 Nov 2022 21:35:54 +0000 (22:35 +0100)
clang/include/clang/Driver/Distro.h
clang/lib/Driver/Distro.cpp

index 01d66b3..1aaf93d 100644 (file)
@@ -76,6 +76,7 @@ public:
     UbuntuImpish,
     UbuntuJammy,
     UbuntuKinetic,
+    UbuntuLunar,
     UnknownDistro
   };
 
@@ -127,7 +128,7 @@ public:
   }
 
   bool IsUbuntu() const {
-    return DistroVal >= UbuntuHardy && DistroVal <= UbuntuKinetic;
+    return DistroVal >= UbuntuHardy && DistroVal <= UbuntuLunar;
   }
 
   bool IsAlpineLinux() const { return DistroVal == AlpineLinux; }
index 1898667..87a0c5a 100644 (file)
@@ -92,6 +92,7 @@ static Distro::DistroType DetectLsbRelease(llvm::vfs::FileSystem &VFS) {
                     .Case("impish", Distro::UbuntuImpish)
                     .Case("jammy", Distro::UbuntuJammy)
                     .Case("kinetic", Distro::UbuntuKinetic)
+                    .Case("lunar", Distro::UbuntuLunar)
                     .Default(Distro::UnknownDistro);
   return Version;
 }