r358756 - Add support of the next Ubuntu (Ubuntu 19.10 - Eoan EANIMAL)

Sylvestre Ledru via cfe-commits cfe-commits at lists.llvm.org
Fri Apr 19 06:43:28 PDT 2019


Author: sylvestre
Date: Fri Apr 19 06:43:28 2019
New Revision: 358756

URL: http://llvm.org/viewvc/llvm-project?rev=358756&view=rev
Log:
Add support of the next Ubuntu (Ubuntu 19.10 - Eoan EANIMAL)


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

Modified: cfe/trunk/include/clang/Driver/Distro.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Driver/Distro.h?rev=358756&r1=358755&r2=358756&view=diff
==============================================================================
--- cfe/trunk/include/clang/Driver/Distro.h (original)
+++ cfe/trunk/include/clang/Driver/Distro.h Fri Apr 19 06:43:28 2019
@@ -63,6 +63,7 @@ public:
     UbuntuBionic,
     UbuntuCosmic,
     UbuntuDisco,
+    UbuntuEoan,
     UnknownDistro
   };
 
@@ -116,7 +117,7 @@ public:
   }
 
   bool IsUbuntu() const {
-    return DistroVal >= UbuntuHardy && DistroVal <= UbuntuDisco;
+    return DistroVal >= UbuntuHardy && DistroVal <= UbuntuEoan;
   }
 
   bool IsAlpineLinux() const {

Modified: cfe/trunk/lib/Driver/Distro.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Driver/Distro.cpp?rev=358756&r1=358755&r2=358756&view=diff
==============================================================================
--- cfe/trunk/lib/Driver/Distro.cpp (original)
+++ cfe/trunk/lib/Driver/Distro.cpp Fri Apr 19 06:43:28 2019
@@ -51,6 +51,7 @@ static Distro::DistroType DetectDistro(l
                       .Case("bionic", Distro::UbuntuBionic)
                       .Case("cosmic", Distro::UbuntuCosmic)
                       .Case("disco", Distro::UbuntuDisco)
+                      .Case("eoan", Distro::UbuntuEoan)
                       .Default(Distro::UnknownDistro);
     if (Version != Distro::UnknownDistro)
       return Version;




More information about the cfe-commits mailing list