forked from OSchip/llvm-project
add support of the latest Ubuntu (Xenial Xerus)
llvm-svn: 251639
This commit is contained in:
parent
f16435d85e
commit
43b9571706
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue