Add support of the next Ubuntu (Ubuntu 18.10 - Cosmic Canimal)

Patch by Adam Conrad

llvm-svn: 331965
This commit is contained in:
Sylvestre Ledru 2018-05-10 08:45:43 +00:00
parent 327f5f3a92
commit 93dd5dcdf7
2 changed files with 3 additions and 1 deletions

View File

@ -61,6 +61,7 @@ public:
UbuntuZesty,
UbuntuArtful,
UbuntuBionic,
UbuntuCosmic,
UnknownDistro
};
@ -114,7 +115,7 @@ public:
}
bool IsUbuntu() const {
return DistroVal >= UbuntuHardy && DistroVal <= UbuntuBionic;
return DistroVal >= UbuntuHardy && DistroVal <= UbuntuCosmic;
}
bool IsAlpineLinux() const {

View File

@ -49,6 +49,7 @@ static Distro::DistroType DetectDistro(vfs::FileSystem &VFS) {
.Case("zesty", Distro::UbuntuZesty)
.Case("artful", Distro::UbuntuArtful)
.Case("bionic", Distro::UbuntuBionic)
.Case("cosmic", Distro::UbuntuCosmic)
.Default(Distro::UnknownDistro);
if (Version != Distro::UnknownDistro)
return Version;