Add support of the next Ubuntu (17.04 - Zesty Zapus)

llvm-svn: 286716
This commit is contained in:
Sylvestre Ledru 2016-11-12 09:26:30 +00:00
parent fd36f0b504
commit f017451807
1 changed files with 3 additions and 1 deletions

View File

@ -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;