From: Sylvestre Ledru Date: Sat, 12 Nov 2016 09:26:30 +0000 (+0000) Subject: Add support of the next Ubuntu (17.04 - Zesty Zapus) X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5c8ed9dc8554e9b17d47ff544885de6892588d8d;p=clang Add support of the next Ubuntu (17.04 - Zesty Zapus) git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@286716 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Driver/ToolChains.cpp b/lib/Driver/ToolChains.cpp index 2062ee458b..7ea7d417a9 100644 --- a/lib/Driver/ToolChains.cpp +++ b/lib/Driver/ToolChains.cpp @@ -3865,6 +3865,7 @@ enum Distro { UbuntuWily, UbuntuXenial, UbuntuYakkety, + UbuntuZesty, UnknownDistro }; @@ -3879,7 +3880,7 @@ static bool IsDebian(enum Distro Distro) { } static bool IsUbuntu(enum Distro Distro) { - return Distro >= UbuntuHardy && Distro <= UbuntuYakkety; + return Distro >= UbuntuHardy && Distro <= UbuntuZesty; } static Distro DetectDistro(vfs::FileSystem &VFS) { @@ -3911,6 +3912,7 @@ static Distro DetectDistro(vfs::FileSystem &VFS) { .Case("wily", UbuntuWily) .Case("xenial", UbuntuXenial) .Case("yakkety", UbuntuYakkety) + .Case("zesty", UbuntuZesty) .Default(UnknownDistro); if (Version != UnknownDistro) return Version;