]> granicus.if.org Git - clang/commitdiff
Add support of the next Ubuntu (Ubuntu 19.04 - Disco Dingo)
authorSylvestre Ledru <sylvestre@debian.org>
Sun, 4 Nov 2018 17:41:41 +0000 (17:41 +0000)
committerSylvestre Ledru <sylvestre@debian.org>
Sun, 4 Nov 2018 17:41:41 +0000 (17:41 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@346103 91177308-0d34-0410-b5e6-96231b3b80d8

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

index d3b0bc986d85a3a199f3bcf2477e211b5bbb03e0..3cf70482981d4909c05b6a6ac3ea229a6d222f1a 100644 (file)
@@ -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 {
index fbfc041304a1363fe2b4dba0c5787a7ae27ece80..eb537c87e75b4c8656ad9948de31964b41a38b2c 100644 (file)
@@ -51,6 +51,7 @@ static Distro::DistroType DetectDistro(llvm::vfs::FileSystem &VFS) {
                       .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;