r346103 - Add support of the next Ubuntu (Ubuntu 19.04 - Disco Dingo)

Sylvestre Ledru via cfe-commits cfe-commits at lists.llvm.org
Sun Nov 4 09:41:41 PST 2018


Author: sylvestre
Date: Sun Nov  4 09:41:41 2018
New Revision: 346103

URL: http://llvm.org/viewvc/llvm-project?rev=346103&view=rev
Log:
Add support of the next Ubuntu (Ubuntu 19.04 - Disco Dingo)


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=346103&r1=346102&r2=346103&view=diff
==============================================================================
--- cfe/trunk/include/clang/Driver/Distro.h (original)
+++ cfe/trunk/include/clang/Driver/Distro.h Sun Nov  4 09:41:41 2018
@@ -62,6 +62,7 @@ public:
     UbuntuArtful,
     UbuntuBionic,
     UbuntuCosmic,
+    UbuntuDisco,
     UnknownDistro
   };
 
@@ -115,7 +116,7 @@ public:
   }
 
   bool IsUbuntu() const {
-    return DistroVal >= UbuntuHardy && DistroVal <= UbuntuCosmic;
+    return DistroVal >= UbuntuHardy && DistroVal <= UbuntuDisco;
   }
 
   bool IsAlpineLinux() const {

Modified: cfe/trunk/lib/Driver/Distro.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Driver/Distro.cpp?rev=346103&r1=346102&r2=346103&view=diff
==============================================================================
--- cfe/trunk/lib/Driver/Distro.cpp (original)
+++ cfe/trunk/lib/Driver/Distro.cpp Sun Nov  4 09:41:41 2018
@@ -51,6 +51,7 @@ static Distro::DistroType DetectDistro(l
                       .Case("artful", Distro::UbuntuArtful)
                       .Case("bionic", Distro::UbuntuBionic)
                       .Case("cosmic", Distro::UbuntuCosmic)
+                      .Case("disco", Distro::UbuntuDisco)
                       .Default(Distro::UnknownDistro);
     if (Version != Distro::UnknownDistro)
       return Version;




More information about the cfe-commits mailing list