Author: Sylvestre Ledru Date: 2024-05-02T22:55:14+02:00 New Revision: 90bd7234e36e5b3d63155f481b739ea463985631
URL: https://github.com/llvm/llvm-project/commit/90bd7234e36e5b3d63155f481b739ea463985631 DIFF: https://github.com/llvm/llvm-project/commit/90bd7234e36e5b3d63155f481b739ea463985631.diff LOG: Add support of the next Ubuntu (Ubuntu 24.10 - Oracular Oriol) Added: Modified: clang/include/clang/Driver/Distro.h clang/lib/Driver/Distro.cpp Removed: ################################################################################ diff --git a/clang/include/clang/Driver/Distro.h b/clang/include/clang/Driver/Distro.h index a8de94163e8b0b..1404e168684821 100644 --- a/clang/include/clang/Driver/Distro.h +++ b/clang/include/clang/Driver/Distro.h @@ -79,6 +79,7 @@ class Distro { UbuntuLunar, UbuntuMantic, UbuntuNoble, + UbuntuOracular, UnknownDistro }; @@ -130,7 +131,7 @@ class Distro { } 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 a7e7f169dc1419..6f49e641104ccd 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; } _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits