forked from OSchip/llvm-project
Add support of the next Ubuntu (Ubuntu 17.10 - Artful Aardvark)
llvm-svn: 302143
This commit is contained in:
parent
45d5cf47bf
commit
6cf800a6f7
|
@ -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;
|
||||
}
|
||||
|
||||
|
||||
/// @}
|
||||
};
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue