Author: Graham Inggs Date: 2023-11-01T21:01:19+01:00 New Revision: 6266b964202336a02f40007928719e060bc81694
URL: https://github.com/llvm/llvm-project/commit/6266b964202336a02f40007928719e060bc81694 DIFF: https://github.com/llvm/llvm-project/commit/6266b964202336a02f40007928719e060bc81694.diff LOG: Add support of the next Ubuntu (Ubuntu 24.04 - Noble Numbat) Co-authored-by: Sylvestre Ledru <sylves...@debian.org> 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 8291f6575a71146..a8de94163e8b0b7 100644 --- a/clang/include/clang/Driver/Distro.h +++ b/clang/include/clang/Driver/Distro.h @@ -78,6 +78,7 @@ class Distro { UbuntuKinetic, UbuntuLunar, UbuntuMantic, + UbuntuNoble, UnknownDistro }; @@ -129,7 +130,7 @@ class Distro { } 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 005c31bd38893c6..36f828f8cae26d3 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; } _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits