]> granicus.if.org Git - clang/commitdiff
Add support of the next Ubuntu (Ubuntu 18.04 - Bionic Beaver)
authorSylvestre Ledru <sylvestre@debian.org>
Wed, 25 Oct 2017 14:21:33 +0000 (14:21 +0000)
committerSylvestre Ledru <sylvestre@debian.org>
Wed, 25 Oct 2017 14:21:33 +0000 (14:21 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@316577 91177308-0d34-0410-b5e6-96231b3b80d8

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

index fab49862a442bc280465029aeb0cb46050b7b1c5..6574fbca381f2794b15fd07a779dcea6d9fa993e 100644 (file)
@@ -58,6 +58,7 @@ public:
     UbuntuYakkety,
     UbuntuZesty,
     UbuntuArtful,
+    UbuntuBionic,
     UnknownDistro
   };
 
index 2df297f3cfc2d056e2e57dcaa1a3c0eb1395f7db..437641b23d7f5f7ae42cd288e84ed0b9fa166f4c 100644 (file)
@@ -48,6 +48,7 @@ static Distro::DistroType DetectDistro(vfs::FileSystem &VFS) {
                       .Case("yakkety", Distro::UbuntuYakkety)
                       .Case("zesty", Distro::UbuntuZesty)
                       .Case("artful", Distro::UbuntuArtful)
+                      .Case("bionic", Distro::UbuntuBionic)
                       .Default(Distro::UnknownDistro);
     if (Version != Distro::UnknownDistro)
       return Version;