From: LLVM Packaging Team Date: Sat, 31 Oct 2020 13:13:25 +0000 (+0000) Subject: ubuntu-groovy X-Git-Tag: archive/raspbian/1%11.0.0-5+rpi1~1^2~4 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=7cb7e63bd1a77bb450361faca5a9f844508a6ac7;p=llvm-toolchain-11.git ubuntu-groovy Gbp-Pq: Name ubuntu-groovy.diff --- 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;