Add support of the next Ubuntu (Ubuntu 21.10 - Impish Idri)
authorSylvestre Ledru <sylvestre@debian.org>
Thu, 22 Apr 2021 18:37:04 +0000 (20:37 +0200)
committerSylvestre Ledru <sylvestre@debian.org>
Thu, 22 Apr 2021 18:38:28 +0000 (20:38 +0200)
clang/include/clang/Driver/Distro.h
clang/lib/Driver/Distro.cpp

index 0e98d00..0d2a093 100644 (file)
@@ -71,6 +71,7 @@ public:
     UbuntuFocal,
     UbuntuGroovy,
     UbuntuHirsute,
+    UbuntuImpish,
     UnknownDistro
   };
 
@@ -122,7 +123,7 @@ public:
   }
 
   bool IsUbuntu() const {
-    return DistroVal >= UbuntuHardy && DistroVal <= UbuntuHirsute;
+    return DistroVal >= UbuntuHardy && DistroVal <= UbuntuImpish;
   }
 
   bool IsAlpineLinux() const { return DistroVal == AlpineLinux; }
index 9fc790f..c4cf4e4 100644 (file)
@@ -89,6 +89,7 @@ static Distro::DistroType DetectLsbRelease(llvm::vfs::FileSystem &VFS) {
                     .Case("focal", Distro::UbuntuFocal)
                     .Case("groovy", Distro::UbuntuGroovy)
                     .Case("hirsute", Distro::UbuntuHirsute)
+                    .Case("impish", Distro::UbuntuImpish)
                     .Default(Distro::UnknownDistro);
   return Version;
 }