Update the list of Ubuntu release names
authorSteve Langasek <steve.langasek@ubuntu.com>
Sun, 1 Jan 2023 14:42:15 +0000 (14:42 +0000)
committerSylvestre Ledru <sylvestre@debian.org>
Sun, 1 Jan 2023 14:42:15 +0000 (14:42 +0000)
Last-Update: 2022-05-03
Forwarded: no

Gbp-Pq: Name ubuntu-kinetic.patch

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

index 2723f75e8945831fcd94c8c40660a4826f0e2102..dbc8b36e27856da2a336b07e9c0bd3f5578596e5 100644 (file)
@@ -74,6 +74,7 @@ public:
     UbuntuHirsute,
     UbuntuImpish,
     UbuntuJammy,
+    UbuntuKinetic,
     UnknownDistro
   };
 
@@ -125,7 +126,7 @@ public:
   }
 
   bool IsUbuntu() const {
-    return DistroVal >= UbuntuHardy && DistroVal <= UbuntuJammy;
+    return DistroVal >= UbuntuHardy && DistroVal <= UbuntuKinetic;
   }
 
   bool IsAlpineLinux() const { return DistroVal == AlpineLinux; }
index 5ac38c34d112884a9a07a0f4aadcb7a4086eb787..a550377314245a006828044f7d993aa412d47bff 100644 (file)
@@ -91,6 +91,7 @@ static Distro::DistroType DetectLsbRelease(llvm::vfs::FileSystem &VFS) {
                     .Case("hirsute", Distro::UbuntuHirsute)
                     .Case("impish", Distro::UbuntuImpish)
                     .Case("jammy", Distro::UbuntuJammy)
+                    .Case("kinetic", Distro::UbuntuKinetic)
                     .Default(Distro::UnknownDistro);
   return Version;
 }