OSDN Git Service

Add support of the next Ubuntu (Ubuntu 20.10 - Groovy Gorilla)
authorSylvestre Ledru <sylvestre@debian.org>
Tue, 19 May 2020 06:30:25 +0000 (08:30 +0200)
committerSylvestre Ledru <sylvestre@debian.org>
Tue, 19 May 2020 06:30:25 +0000 (08:30 +0200)
clang/include/clang/Driver/Distro.h
clang/lib/Driver/Distro.cpp

index d382cf7..038d4ce 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 acfde7d..4d58ad1 100644 (file)
@@ -71,6 +71,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;