[clang] 32b55f3 - Add support of the next Ubuntu (Ubuntu 25.04 - Plucky Puffin)
Sylvestre Ledru via cfe-commits
cfe-commits at lists.llvm.org
Thu Oct 17 12:34:37 PDT 2024
Author: Sylvestre Ledru
Date: 2024-10-17T21:32:20+02:00
New Revision: 32b55f375feaf6bcc2c870964a0bf087cf3c22bf
URL: https://github.com/llvm/llvm-project/commit/32b55f375feaf6bcc2c870964a0bf087cf3c22bf
DIFF: https://github.com/llvm/llvm-project/commit/32b55f375feaf6bcc2c870964a0bf087cf3c22bf.diff
LOG: Add support of the next Ubuntu (Ubuntu 25.04 - Plucky Puffin)
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 1404e168684821..b4d485dac8a269 100644
--- a/clang/include/clang/Driver/Distro.h
+++ b/clang/include/clang/Driver/Distro.h
@@ -80,6 +80,7 @@ class Distro {
UbuntuMantic,
UbuntuNoble,
UbuntuOracular,
+ UbuntuPlucky,
UnknownDistro
};
@@ -131,7 +132,7 @@ class Distro {
}
bool IsUbuntu() const {
- return DistroVal >= UbuntuHardy && DistroVal <= UbuntuOracular;
+ return DistroVal >= UbuntuHardy && DistroVal <= UbuntuPlucky;
}
bool IsAlpineLinux() const { return DistroVal == AlpineLinux; }
diff --git a/clang/lib/Driver/Distro.cpp b/clang/lib/Driver/Distro.cpp
index 6f49e641104ccd..3d1bce027f664d 100644
--- a/clang/lib/Driver/Distro.cpp
+++ b/clang/lib/Driver/Distro.cpp
@@ -96,6 +96,7 @@ static Distro::DistroType DetectLsbRelease(llvm::vfs::FileSystem &VFS) {
.Case("mantic", Distro::UbuntuMantic)
.Case("noble", Distro::UbuntuNoble)
.Case("oracular", Distro::UbuntuOracular)
+ .Case("plucky", Distro::UbuntuPlucky)
.Default(Distro::UnknownDistro);
return Version;
}
More information about the cfe-commits
mailing list