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)
llvm-svn: 316577

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

index fab4986..6574fbc 100644 (file)
@@ -58,6 +58,7 @@ public:
     UbuntuYakkety,
     UbuntuZesty,
     UbuntuArtful,
+    UbuntuBionic,
     UnknownDistro
   };
 
index 2df297f..437641b 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;