add support of the latest Ubuntu (Xenial Xerus)

llvm-svn: 251639
This commit is contained in:
Sylvestre Ledru 2015-10-29 17:27:55 +00:00
parent f16435d85e
commit 43b9571706
1 changed files with 3 additions and 1 deletions

View File

@ -3253,6 +3253,7 @@ enum Distro {
UbuntuUtopic,
UbuntuVivid,
UbuntuWily,
UbuntuXenial,
UnknownDistro
};
@ -3267,7 +3268,7 @@ static bool IsDebian(enum Distro Distro) {
}
static bool IsUbuntu(enum Distro Distro) {
return Distro >= UbuntuHardy && Distro <= UbuntuWily;
return Distro >= UbuntuHardy && Distro <= UbuntuXenial;
}
static Distro DetectDistro(const Driver &D, llvm::Triple::ArchType Arch) {
@ -3297,6 +3298,7 @@ static Distro DetectDistro(const Driver &D, llvm::Triple::ArchType Arch) {
.Case("utopic", UbuntuUtopic)
.Case("vivid", UbuntuVivid)
.Case("wily", UbuntuWily)
.Case("xenial", UbuntuXenial)
.Default(UnknownDistro);
return Version;
}