From 6cd3be8e6156a9e707366e8deffdff6fa42ee3bf Mon Sep 17 00:00:00 2001 From: Steve Langasek Date: Sat, 25 Jun 2022 08:56:23 +0100 Subject: [PATCH] Update the list of Ubuntu release names Last-Update: 2022-05-03 Forwarded: no Gbp-Pq: Name ubuntu-kinetic.patch --- clang/include/clang/Driver/Distro.h | 3 ++- clang/lib/Driver/Distro.cpp | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/clang/include/clang/Driver/Distro.h b/clang/include/clang/Driver/Distro.h index 2723f75e89..dbc8b36e27 100644 --- a/clang/include/clang/Driver/Distro.h +++ b/clang/include/clang/Driver/Distro.h @@ -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; } diff --git a/clang/lib/Driver/Distro.cpp b/clang/lib/Driver/Distro.cpp index 5ac38c34d1..a550377314 100644 --- a/clang/lib/Driver/Distro.cpp +++ b/clang/lib/Driver/Distro.cpp @@ -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; } -- 2.30.2