[clang] d1829c3 - Add support of the next Ubuntu (Ubuntu 23.04 - Lunar Lobster)
Sylvestre Ledru via cfe-commits
cfe-commits at lists.llvm.org
Sat Nov 5 14:36:37 PDT 2022
Author: Sylvestre Ledru
Date: 2022-11-05T22:35:54+01:00
New Revision: d1829c308da9c2adc46640a960c105b573db6555
URL: https://github.com/llvm/llvm-project/commit/d1829c308da9c2adc46640a960c105b573db6555
DIFF: https://github.com/llvm/llvm-project/commit/d1829c308da9c2adc46640a960c105b573db6555.diff
LOG: Add support of the next Ubuntu (Ubuntu 23.04 - Lunar Lobster)
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 01d66b30b0386..1aaf93ddb7c43 100644
--- a/clang/include/clang/Driver/Distro.h
+++ b/clang/include/clang/Driver/Distro.h
@@ -76,6 +76,7 @@ class Distro {
UbuntuImpish,
UbuntuJammy,
UbuntuKinetic,
+ UbuntuLunar,
UnknownDistro
};
@@ -127,7 +128,7 @@ class Distro {
}
bool IsUbuntu() const {
- return DistroVal >= UbuntuHardy && DistroVal <= UbuntuKinetic;
+ return DistroVal >= UbuntuHardy && DistroVal <= UbuntuLunar;
}
bool IsAlpineLinux() const { return DistroVal == AlpineLinux; }
diff --git a/clang/lib/Driver/Distro.cpp b/clang/lib/Driver/Distro.cpp
index 1898667279cc3..87a0c5a585115 100644
--- a/clang/lib/Driver/Distro.cpp
+++ b/clang/lib/Driver/Distro.cpp
@@ -92,6 +92,7 @@ static Distro::DistroType DetectLsbRelease(llvm::vfs::FileSystem &VFS) {
.Case("impish", Distro::UbuntuImpish)
.Case("jammy", Distro::UbuntuJammy)
.Case("kinetic", Distro::UbuntuKinetic)
+ .Case("lunar", Distro::UbuntuLunar)
.Default(Distro::UnknownDistro);
return Version;
}
More information about the cfe-commits
mailing list