From: Graham Inggs Date: Thu, 11 Jan 2024 13:15:09 +0000 (+0100) Subject: Update the list of Ubuntu release names X-Git-Tag: archive/raspbian/1%19.1.3-1+rpi1~2^2~5 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=87146968fb251bb0388eadfb774b0e596b73d424;p=llvm-toolchain-19.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 8291f6575a..a8de94163e 100644 --- a/clang/include/clang/Driver/Distro.h +++ b/clang/include/clang/Driver/Distro.h @@ -78,6 +78,7 @@ public: UbuntuKinetic, UbuntuLunar, UbuntuMantic, + UbuntuNoble, UnknownDistro }; @@ -129,7 +130,7 @@ public: } bool IsUbuntu() const { - return DistroVal >= UbuntuHardy && DistroVal <= UbuntuMantic; + return DistroVal >= UbuntuHardy && DistroVal <= UbuntuNoble; } bool IsAlpineLinux() const { return DistroVal == AlpineLinux; } diff --git a/clang/lib/Driver/Distro.cpp b/clang/lib/Driver/Distro.cpp index 6e00875659..5d0d1f681e 100644 --- a/clang/lib/Driver/Distro.cpp +++ b/clang/lib/Driver/Distro.cpp @@ -94,6 +94,7 @@ static Distro::DistroType DetectLsbRelease(llvm::vfs::FileSystem &VFS) { .Case("kinetic", Distro::UbuntuKinetic) .Case("lunar", Distro::UbuntuLunar) .Case("mantic", Distro::UbuntuMantic) + .Case("noble", Distro::UbuntuNoble) .Default(Distro::UnknownDistro); return Version; }