[clang] a709787 - Add support of the next Ubuntu (Ubuntu 22.04 - Jammy Jellyfish)
Sylvestre Ledru via cfe-commits
cfe-commits at lists.llvm.org
Sat Oct 23 14:56:51 PDT 2021
Author: Sylvestre Ledru
Date: 2021-10-23T23:55:50+02:00
New Revision: a709787cd988aaca847995bd08cc9348c9c6c956
URL: https://github.com/llvm/llvm-project/commit/a709787cd988aaca847995bd08cc9348c9c6c956
DIFF: https://github.com/llvm/llvm-project/commit/a709787cd988aaca847995bd08cc9348c9c6c956.diff
LOG: Add support of the next Ubuntu (Ubuntu 22.04 - Jammy Jellyfish)
It is going to be a LTS release
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 d9909bcf96968..2723f75e89458 100644
--- a/clang/include/clang/Driver/Distro.h
+++ b/clang/include/clang/Driver/Distro.h
@@ -73,6 +73,7 @@ class Distro {
UbuntuGroovy,
UbuntuHirsute,
UbuntuImpish,
+ UbuntuJammy,
UnknownDistro
};
@@ -124,7 +125,7 @@ class Distro {
}
bool IsUbuntu() const {
- return DistroVal >= UbuntuHardy && DistroVal <= UbuntuImpish;
+ return DistroVal >= UbuntuHardy && DistroVal <= UbuntuJammy;
}
bool IsAlpineLinux() const { return DistroVal == AlpineLinux; }
diff --git a/clang/lib/Driver/Distro.cpp b/clang/lib/Driver/Distro.cpp
index 6a11bacb41e5b..5ac38c34d1128 100644
--- a/clang/lib/Driver/Distro.cpp
+++ b/clang/lib/Driver/Distro.cpp
@@ -90,6 +90,7 @@ static Distro::DistroType DetectLsbRelease(llvm::vfs::FileSystem &VFS) {
.Case("groovy", Distro::UbuntuGroovy)
.Case("hirsute", Distro::UbuntuHirsute)
.Case("impish", Distro::UbuntuImpish)
+ .Case("jammy", Distro::UbuntuJammy)
.Default(Distro::UnknownDistro);
return Version;
}
More information about the cfe-commits
mailing list