Add support of the next Ubuntu (Ubuntu 17.10 - Artful Aardvark)

llvm-svn: 302143
This commit is contained in:
Sylvestre Ledru 2017-05-04 12:46:38 +00:00
parent 45d5cf47bf
commit 6cf800a6f7
2 changed files with 4 additions and 2 deletions

View File

@ -57,6 +57,7 @@ public:
UbuntuXenial,
UbuntuYakkety,
UbuntuZesty,
UbuntuArtful,
UnknownDistro
};
@ -110,9 +111,9 @@ public:
}
bool IsUbuntu() const {
return DistroVal >= UbuntuHardy && DistroVal <= UbuntuZesty;
return DistroVal >= UbuntuHardy && DistroVal <= UbuntuArtful;
}
/// @}
};

View File

@ -47,6 +47,7 @@ static Distro::DistroType DetectDistro(vfs::FileSystem &VFS) {
.Case("xenial", Distro::UbuntuXenial)
.Case("yakkety", Distro::UbuntuYakkety)
.Case("zesty", Distro::UbuntuZesty)
.Case("artful", Distro::UbuntuArtful)
.Default(Distro::UnknownDistro);
if (Version != Distro::UnknownDistro)
return Version;