From: Sylvestre Ledru Date: Thu, 2 May 2024 20:54:08 +0000 (+0200) Subject: [PATCH] Add support of the next Ubuntu (Ubuntu 24.10 - Oracular Oriol) X-Git-Tag: archive/raspbian/1%19.1.3-1+rpi1~1^2~9 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=d238defb5f000307ab13285b902e3293f46a5077;p=llvm-toolchain-19.git [PATCH] Add support of the next Ubuntu (Ubuntu 24.10 - Oracular Oriol) Gbp-Pq: Name ubuntu-releases.patch --- diff --git a/clang/include/clang/Driver/Distro.h b/clang/include/clang/Driver/Distro.h index a8de94163e..1404e16868 100644 --- a/clang/include/clang/Driver/Distro.h +++ b/clang/include/clang/Driver/Distro.h @@ -79,6 +79,7 @@ public: UbuntuLunar, UbuntuMantic, UbuntuNoble, + UbuntuOracular, UnknownDistro }; @@ -130,7 +131,7 @@ public: } bool IsUbuntu() const { - return DistroVal >= UbuntuHardy && DistroVal <= UbuntuNoble; + 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 a7e7f169dc..6f49e64110 100644 --- a/clang/lib/Driver/Distro.cpp +++ b/clang/lib/Driver/Distro.cpp @@ -95,6 +95,7 @@ static Distro::DistroType DetectLsbRelease(llvm::vfs::FileSystem &VFS) { .Case("lunar", Distro::UbuntuLunar) .Case("mantic", Distro::UbuntuMantic) .Case("noble", Distro::UbuntuNoble) + .Case("oracular", Distro::UbuntuOracular) .Default(Distro::UnknownDistro); return Version; }