From: Sylvestre Ledru Date: Wed, 10 May 2023 14:31:53 +0000 (+0200) Subject: [PATCH] Add support of the next Ubuntu (Ubuntu 23.10 - Mantic Minotaur) X-Git-Tag: archive/raspbian/1%16.0.6-27+rpi1~1^2~8 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=25dba43529a7be328e958bc1b236059ff704c05f;p=llvm-toolchain-16.git [PATCH] Add support of the next Ubuntu (Ubuntu 23.10 - Mantic Minotaur) Gbp-Pq: Name ubuntu-releases.patch --- diff --git a/clang/include/clang/Driver/Distro.h b/clang/include/clang/Driver/Distro.h index 1aaf93ddb7..90787dc6e0 100644 --- a/clang/include/clang/Driver/Distro.h +++ b/clang/include/clang/Driver/Distro.h @@ -77,6 +77,9 @@ public: UbuntuJammy, UbuntuKinetic, UbuntuLunar, + UbuntuMantic, + UbuntuNoble, + UbuntuOracular, UnknownDistro }; @@ -128,7 +131,7 @@ public: } bool IsUbuntu() const { - return DistroVal >= UbuntuHardy && DistroVal <= UbuntuLunar; + return DistroVal >= UbuntuHardy && DistroVal <= UbuntuOracular; } bool IsAlpineLinux() const { return DistroVal == AlpineLinux; } diff --git a/clang/lib/Driver/Distro.cpp b/clang/lib/Driver/Distro.cpp index 87a0c5a585..df32e856a8 100644 --- a/clang/lib/Driver/Distro.cpp +++ b/clang/lib/Driver/Distro.cpp @@ -93,6 +93,9 @@ static Distro::DistroType DetectLsbRelease(llvm::vfs::FileSystem &VFS) { .Case("jammy", Distro::UbuntuJammy) .Case("kinetic", Distro::UbuntuKinetic) .Case("lunar", Distro::UbuntuLunar) + .Case("mantic", Distro::UbuntuMantic) + .Case("noble", Distro::UbuntuNoble) + .Case("oracular", Distro::UbuntuOracular) .Default(Distro::UnknownDistro); return Version; }