From 1fcc8bb544a233fcd78183ae546fd8643ab318c7 Mon Sep 17 00:00:00 2001 From: LLVM Packaging Team Date: Wed, 2 Sep 2020 12:55:46 +0100 Subject: [PATCH] ubuntu-groovy Gbp-Pq: Name ubuntu-groovy.diff --- clang/include/clang/Driver/Distro.h | 3 ++- clang/lib/Driver/Distro.cpp | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/clang/include/clang/Driver/Distro.h b/clang/include/clang/Driver/Distro.h index d382cf77a..038d4ce75 100644 --- a/clang/include/clang/Driver/Distro.h +++ b/clang/include/clang/Driver/Distro.h @@ -67,6 +67,7 @@ public: UbuntuDisco, UbuntuEoan, UbuntuFocal, + UbuntuGroovy, UnknownDistro }; @@ -120,7 +121,7 @@ public: } bool IsUbuntu() const { - return DistroVal >= UbuntuHardy && DistroVal <= UbuntuFocal; + return DistroVal >= UbuntuHardy && DistroVal <= UbuntuGroovy; } bool IsAlpineLinux() const { diff --git a/clang/lib/Driver/Distro.cpp b/clang/lib/Driver/Distro.cpp index 06707fefc..4d4f18006 100644 --- a/clang/lib/Driver/Distro.cpp +++ b/clang/lib/Driver/Distro.cpp @@ -70,6 +70,7 @@ static Distro::DistroType DetectDistro(llvm::vfs::FileSystem &VFS, .Case("disco", Distro::UbuntuDisco) .Case("eoan", Distro::UbuntuEoan) .Case("focal", Distro::UbuntuFocal) + .Case("groovy", Distro::UbuntuGroovy) .Default(Distro::UnknownDistro); if (Version != Distro::UnknownDistro) return Version; -- 2.30.2