From: Graham Inggs Date: Mon, 11 Sep 2023 13:40:42 +0000 (+0100) Subject: Update the list of Ubuntu release names X-Git-Tag: archive/raspbian/1%16.0.6-15+rpi1~9 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=7ff9ef537e5d051ab6b8cd797370e07adb63cc71;p=llvm-toolchain-16.git Update the list of Ubuntu release names Forwarded: no Last-Update: 2023-04-29 Gbp-Pq: Name ubuntu-releases.patch --- diff --git a/clang/include/clang/Driver/Distro.h b/clang/include/clang/Driver/Distro.h index 1aaf93ddb7..a4f70e6723 100644 --- a/clang/include/clang/Driver/Distro.h +++ b/clang/include/clang/Driver/Distro.h @@ -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; } diff --git a/clang/lib/Driver/Distro.cpp b/clang/lib/Driver/Distro.cpp index 87a0c5a585..c62fe07a46 100644 --- a/clang/lib/Driver/Distro.cpp +++ b/clang/lib/Driver/Distro.cpp @@ -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; }