ubuntu-groovy
authorLLVM Packaging Team <pkg-llvm-team@lists.alioth.debian.org>
Thu, 22 Oct 2020 20:29:07 +0000 (21:29 +0100)
committerSylvestre Ledru <sylvestre@debian.org>
Thu, 22 Oct 2020 20:29:07 +0000 (21:29 +0100)
Gbp-Pq: Name ubuntu-groovy.diff

clang/include/clang/Driver/Distro.h
clang/lib/Driver/Distro.cpp

index d382cf77a8b22657ab9f4fec304eb8c0411a624b..038d4ce75d808d00e1e326e3bb0f87a5f1a77921 100644 (file)
@@ -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 {
index 06707fefc9d08bacda301246982af99cfc536360..4d4f1800662b68b2458c4f96f0016bf139304b22 100644 (file)
@@ -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;