forked from OSchip/llvm-project
Add support of the next Ubuntu (Ubuntu 22.10 - Kinetic Kudu)
This commit is contained in:
parent
a02000611a
commit
6f4dc5dae6
|
@ -75,6 +75,7 @@ public:
|
|||
UbuntuHirsute,
|
||||
UbuntuImpish,
|
||||
UbuntuJammy,
|
||||
UbuntuKinetic,
|
||||
UnknownDistro
|
||||
};
|
||||
|
||||
|
@ -126,7 +127,7 @@ public:
|
|||
}
|
||||
|
||||
bool IsUbuntu() const {
|
||||
return DistroVal >= UbuntuHardy && DistroVal <= UbuntuJammy;
|
||||
return DistroVal >= UbuntuHardy && DistroVal <= UbuntuKinetic;
|
||||
}
|
||||
|
||||
bool IsAlpineLinux() const { return DistroVal == AlpineLinux; }
|
||||
|
|
|
@ -91,6 +91,7 @@ static Distro::DistroType DetectLsbRelease(llvm::vfs::FileSystem &VFS) {
|
|||
.Case("hirsute", Distro::UbuntuHirsute)
|
||||
.Case("impish", Distro::UbuntuImpish)
|
||||
.Case("jammy", Distro::UbuntuJammy)
|
||||
.Case("kinetic", Distro::UbuntuKinetic)
|
||||
.Default(Distro::UnknownDistro);
|
||||
return Version;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue