Add support of the next Ubuntu (Ubuntu 21.04 - Hirsute Hippo)
authorSylvestre Ledru <sylvestre@debian.org>
Thu, 29 Oct 2020 16:56:53 +0000 (17:56 +0100)
committerSylvestre Ledru <sylvestre@debian.org>
Thu, 29 Oct 2020 18:11:32 +0000 (19:11 +0100)
clang/include/clang/Driver/Distro.h
clang/lib/Driver/Distro.cpp

index 2b5ec9a..0e98d00 100644 (file)
@@ -70,6 +70,7 @@ public:
     UbuntuEoan,
     UbuntuFocal,
     UbuntuGroovy,
+    UbuntuHirsute,
     UnknownDistro
   };
 
@@ -121,7 +122,7 @@ public:
   }
 
   bool IsUbuntu() const {
-    return DistroVal >= UbuntuHardy && DistroVal <= UbuntuGroovy;
+    return DistroVal >= UbuntuHardy && DistroVal <= UbuntuHirsute;
   }
 
   bool IsAlpineLinux() const { return DistroVal == AlpineLinux; }
index 02a71cb..ee4fe84 100644 (file)
@@ -87,6 +87,7 @@ static Distro::DistroType DetectLsbRelease(llvm::vfs::FileSystem &VFS) {
                     .Case("eoan", Distro::UbuntuEoan)
                     .Case("focal", Distro::UbuntuFocal)
                     .Case("groovy", Distro::UbuntuGroovy)
+                    .Case("hirsute", Distro::UbuntuHirsute)
                     .Default(Distro::UnknownDistro);
   return Version;
 }