forked from OSchip/llvm-project
Add support of the next Ubuntu (Ubuntu 21.10 - Impish Idri)
This commit is contained in:
parent
abf3ca61e3
commit
d71ee3993f
|
@ -71,6 +71,7 @@ public:
|
|||
UbuntuFocal,
|
||||
UbuntuGroovy,
|
||||
UbuntuHirsute,
|
||||
UbuntuImpish,
|
||||
UnknownDistro
|
||||
};
|
||||
|
||||
|
@ -122,7 +123,7 @@ public:
|
|||
}
|
||||
|
||||
bool IsUbuntu() const {
|
||||
return DistroVal >= UbuntuHardy && DistroVal <= UbuntuHirsute;
|
||||
return DistroVal >= UbuntuHardy && DistroVal <= UbuntuImpish;
|
||||
}
|
||||
|
||||
bool IsAlpineLinux() const { return DistroVal == AlpineLinux; }
|
||||
|
|
|
@ -89,6 +89,7 @@ static Distro::DistroType DetectLsbRelease(llvm::vfs::FileSystem &VFS) {
|
|||
.Case("focal", Distro::UbuntuFocal)
|
||||
.Case("groovy", Distro::UbuntuGroovy)
|
||||
.Case("hirsute", Distro::UbuntuHirsute)
|
||||
.Case("impish", Distro::UbuntuImpish)
|
||||
.Default(Distro::UnknownDistro);
|
||||
return Version;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue