summaryrefslogtreecommitdiffstats
path: root/clang/lib/Driver/ToolChains.cpp
diff options
context:
space:
mode:
authorSylvestre Ledru <sylvestre@debian.org>2016-11-12 09:26:30 +0000
committerSylvestre Ledru <sylvestre@debian.org>2016-11-12 09:26:30 +0000
commitf0174518079d2ba40d930977910f7730ab899844 (patch)
tree7c094894a984ac6e7c76c29fcd40a02afc36bc73 /clang/lib/Driver/ToolChains.cpp
parentfd36f0b5046de20c220e5f53e5e8394fb9bfea2b (diff)
downloadbcm5719-llvm-f0174518079d2ba40d930977910f7730ab899844.tar.gz
bcm5719-llvm-f0174518079d2ba40d930977910f7730ab899844.zip
Add support of the next Ubuntu (17.04 - Zesty Zapus)
llvm-svn: 286716
Diffstat (limited to 'clang/lib/Driver/ToolChains.cpp')
-rw-r--r--clang/lib/Driver/ToolChains.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/clang/lib/Driver/ToolChains.cpp b/clang/lib/Driver/ToolChains.cpp
index 2062ee458b2..7ea7d417a93 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;
OpenPOWER on IntegriCloud