summaryrefslogtreecommitdiffstats
path: root/clang/lib/Driver/ToolChains.cpp
diff options
context:
space:
mode:
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 f4a7fe64599..79f96cdaeac 100644
--- a/clang/lib/Driver/ToolChains.cpp
+++ b/clang/lib/Driver/ToolChains.cpp
@@ -3787,6 +3787,7 @@ enum Distro {
UbuntuVivid,
UbuntuWily,
UbuntuXenial,
+ UbuntuYakkety,
UnknownDistro
};
@@ -3801,7 +3802,7 @@ static bool IsDebian(enum Distro Distro) {
}
static bool IsUbuntu(enum Distro Distro) {
- return Distro >= UbuntuHardy && Distro <= UbuntuXenial;
+ return Distro >= UbuntuHardy && Distro <= UbuntuYakkety;
}
static Distro DetectDistro(const Driver &D, llvm::Triple::ArchType Arch) {
@@ -3832,6 +3833,7 @@ static Distro DetectDistro(const Driver &D, llvm::Triple::ArchType Arch) {
.Case("vivid", UbuntuVivid)
.Case("wily", UbuntuWily)
.Case("xenial", UbuntuXenial)
+ .Case("yakkety", UbuntuYakkety)
.Default(UnknownDistro);
if (Version != UnknownDistro)
return Version;
OpenPOWER on IntegriCloud