From: Steve Langasek Date: Sat, 23 Jul 2022 21:01:02 +0000 (+0100) Subject: Update the list of Ubuntu release names X-Git-Tag: archive/raspbian/1%14.0.6-2+rpi1^2~1 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=a1031930d013e1d47ef9c2c4ee6018803fe63949;p=llvm-toolchain-14.git Update the list of Ubuntu release names Last-Update: 2022-05-03 Forwarded: no Gbp-Pq: Name ubuntu-kinetic.patch --- 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; }