Author: Sylvestre Ledru Date: 2026-05-11T10:25:02+02:00 New Revision: d48575ff7eca98f5f730d41736980698831848ce
URL: https://github.com/llvm/llvm-project/commit/d48575ff7eca98f5f730d41736980698831848ce DIFF: https://github.com/llvm/llvm-project/commit/d48575ff7eca98f5f730d41736980698831848ce.diff LOG: Add support for Ubuntu 26.10 - Stonking Stingray (#196896) Co-authored-by: Oliver Reiche <[email protected]> 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 0e17b30eb7e8d..aa4b3e1280920 100644 --- a/clang/include/clang/Driver/Distro.h +++ b/clang/include/clang/Driver/Distro.h @@ -74,6 +74,7 @@ class Distro { UbuntuPlucky, UbuntuQuesting, UbuntuResolute, + UbuntuStonking, UnknownDistro }; @@ -125,7 +126,7 @@ class Distro { } bool IsUbuntu() const { - return DistroVal >= UbuntuQuantal && DistroVal <= UbuntuResolute; + return DistroVal >= UbuntuQuantal && DistroVal <= UbuntuStonking; } bool IsAlpineLinux() const { return DistroVal == AlpineLinux; } diff --git a/clang/lib/Driver/Distro.cpp b/clang/lib/Driver/Distro.cpp index 37be87b57b9a7..585497e998372 100644 --- a/clang/lib/Driver/Distro.cpp +++ b/clang/lib/Driver/Distro.cpp @@ -89,6 +89,7 @@ static Distro::DistroType DetectLsbRelease(llvm::vfs::FileSystem &VFS) { .Case("plucky", Distro::UbuntuPlucky) .Case("questing", Distro::UbuntuQuesting) .Case("resolute", Distro::UbuntuResolute) + .Case("stonking", Distro::UbuntuStonking) .Default(Distro::UnknownDistro); return Version; } _______________________________________________ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
