From: Sylvestre Ledru Date: Thu, 4 May 2017 12:46:38 +0000 (+0000) Subject: Add support of the next Ubuntu (Ubuntu 17.10 - Artful Aardvark) X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6f78f4aa2043e30913c1352b09f6c0816e3a4b73;p=clang Add support of the next Ubuntu (Ubuntu 17.10 - Artful Aardvark) git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@302143 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/clang/Driver/Distro.h b/include/clang/Driver/Distro.h index e2fb8b6433..fab49862a4 100644 --- a/include/clang/Driver/Distro.h +++ b/include/clang/Driver/Distro.h @@ -57,6 +57,7 @@ public: UbuntuXenial, UbuntuYakkety, UbuntuZesty, + UbuntuArtful, UnknownDistro }; @@ -110,9 +111,9 @@ public: } bool IsUbuntu() const { - return DistroVal >= UbuntuHardy && DistroVal <= UbuntuZesty; + return DistroVal >= UbuntuHardy && DistroVal <= UbuntuArtful; } - + /// @} }; diff --git a/lib/Driver/Distro.cpp b/lib/Driver/Distro.cpp index d305b17944..2df297f3cf 100644 --- a/lib/Driver/Distro.cpp +++ b/lib/Driver/Distro.cpp @@ -47,6 +47,7 @@ static Distro::DistroType DetectDistro(vfs::FileSystem &VFS) { .Case("xenial", Distro::UbuntuXenial) .Case("yakkety", Distro::UbuntuYakkety) .Case("zesty", Distro::UbuntuZesty) + .Case("artful", Distro::UbuntuArtful) .Default(Distro::UnknownDistro); if (Version != Distro::UnknownDistro) return Version;