[clang] d71ee39 - Add support of the next Ubuntu (Ubuntu 21.10 - Impish Idri)

Sylvestre Ledru via cfe-commits cfe-commits at lists.llvm.org
Thu Apr 22 11:38:48 PDT 2021


Author: Sylvestre Ledru
Date: 2021-04-22T20:38:28+02:00
New Revision: d71ee3993fe7decab00c3083438e13f81bd49f02

URL: https://github.com/llvm/llvm-project/commit/d71ee3993fe7decab00c3083438e13f81bd49f02
DIFF: https://github.com/llvm/llvm-project/commit/d71ee3993fe7decab00c3083438e13f81bd49f02.diff

LOG: Add support of the next Ubuntu (Ubuntu 21.10 - Impish Idri)

Added: 
    

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

Removed: 
    


################################################################################
diff  --git a/clang/include/clang/Driver/Distro.h b/clang/include/clang/Driver/Distro.h
index 0e98d00764c13..0d2a0939639ea 100644
--- a/clang/include/clang/Driver/Distro.h
+++ b/clang/include/clang/Driver/Distro.h
@@ -71,6 +71,7 @@ class Distro {
     UbuntuFocal,
     UbuntuGroovy,
     UbuntuHirsute,
+    UbuntuImpish,
     UnknownDistro
   };
 
@@ -122,7 +123,7 @@ class Distro {
   }
 
   bool IsUbuntu() const {
-    return DistroVal >= UbuntuHardy && DistroVal <= UbuntuHirsute;
+    return DistroVal >= UbuntuHardy && DistroVal <= UbuntuImpish;
   }
 
   bool IsAlpineLinux() const { return DistroVal == AlpineLinux; }

diff  --git a/clang/lib/Driver/Distro.cpp b/clang/lib/Driver/Distro.cpp
index 9fc790f17d6ce..c4cf4e48b5b8d 100644
--- a/clang/lib/Driver/Distro.cpp
+++ b/clang/lib/Driver/Distro.cpp
@@ -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;
 }


        


More information about the cfe-commits mailing list