From f0174518079d2ba40d930977910f7730ab899844 Mon Sep 17 00:00:00 2001 From: Sylvestre Ledru Date: Sat, 12 Nov 2016 09:26:30 +0000 Subject: [PATCH] Add support of the next Ubuntu (17.04 - Zesty Zapus) llvm-svn: 286716 --- clang/lib/Driver/ToolChains.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/clang/lib/Driver/ToolChains.cpp b/clang/lib/Driver/ToolChains.cpp index 2062ee458b2c..7ea7d417a934 100644 --- a/clang/lib/Driver/ToolChains.cpp +++ b/clang/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;