[clang] 6f4dc5d - Add support of the next Ubuntu (Ubuntu 22.10 - Kinetic Kudu)
Sylvestre Ledru via cfe-commits
cfe-commits at lists.llvm.org
Mon May 23 04:51:45 PDT 2022
Author: Sylvestre Ledru
Date: 2022-05-23T13:49:34+02:00
New Revision: 6f4dc5dae60598e71c8211b0c1a705474b0a223f
URL: https://github.com/llvm/llvm-project/commit/6f4dc5dae60598e71c8211b0c1a705474b0a223f
DIFF: https://github.com/llvm/llvm-project/commit/6f4dc5dae60598e71c8211b0c1a705474b0a223f.diff
LOG: Add support of the next Ubuntu (Ubuntu 22.10 - Kinetic Kudu)
Added:
Modified:
clang/include/clang/Driver/Distro.h
clang/lib/Driver/Distro.cpp
Removed:
################################################################################
diff --git a/clang/include/clang/Driver/Distro.h b/clang/include/clang/Driver/Distro.h
index c31fbd4e93f1..01d66b30b038 100644
--- a/clang/include/clang/Driver/Distro.h
+++ b/clang/include/clang/Driver/Distro.h
@@ -75,6 +75,7 @@ class Distro {
UbuntuHirsute,
UbuntuImpish,
UbuntuJammy,
+ UbuntuKinetic,
UnknownDistro
};
@@ -126,7 +127,7 @@ class Distro {
}
bool IsUbuntu() const {
- return DistroVal >= UbuntuHardy && DistroVal <= UbuntuJammy;
+ return DistroVal >= UbuntuHardy && DistroVal <= UbuntuKinetic;
}
bool IsAlpineLinux() const { return DistroVal == AlpineLinux; }
diff --git a/clang/lib/Driver/Distro.cpp b/clang/lib/Driver/Distro.cpp
index b0e2f3ac94c7..1898667279cc 100644
--- a/clang/lib/Driver/Distro.cpp
+++ b/clang/lib/Driver/Distro.cpp
@@ -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;
}
More information about the cfe-commits
mailing list