llvmorg-github-actions[bot] wrote:
<!--LLVM PR SUMMARY COMMENT--> @llvm/pr-subscribers-clang Author: Oliver Reiche (oreiche) <details> <summary>Changes</summary> --- Full diff: https://github.com/llvm/llvm-project/pull/196111.diff 2 Files Affected: - (modified) clang/include/clang/Driver/Distro.h (+2-1) - (modified) clang/lib/Driver/Distro.cpp (+1) ``````````diff 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; } `````````` </details> https://github.com/llvm/llvm-project/pull/196111 _______________________________________________ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
