Skip to content

Commit eaa6a28

Browse files
committed
Add support of the next Ubuntu (Ubuntu 26.04 - Resolute Raccoon)
1 parent 322c1a2 commit eaa6a28

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

clang/include/clang/Driver/Distro.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ class Distro {
7979
UbuntuOracular,
8080
UbuntuPlucky,
8181
UbuntuQuesting,
82+
UbuntuResolute,
8283
UnknownDistro
8384
};
8485

@@ -130,7 +131,7 @@ class Distro {
130131
}
131132

132133
bool IsUbuntu() const {
133-
return DistroVal >= UbuntuMaverick && DistroVal <= UbuntuQuesting;
134+
return DistroVal >= UbuntuMaverick && DistroVal <= UbuntuResolute;
134135
}
135136

136137
bool IsAlpineLinux() const { return DistroVal == AlpineLinux; }

clang/lib/Driver/Distro.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ static Distro::DistroType DetectLsbRelease(llvm::vfs::FileSystem &VFS) {
9292
.Case("oracular", Distro::UbuntuOracular)
9393
.Case("plucky", Distro::UbuntuPlucky)
9494
.Case("questing", Distro::UbuntuQuesting)
95+
.Case("resolute", Distro::UbuntuResolute)
9596
.Default(Distro::UnknownDistro);
9697
return Version;
9798
}

0 commit comments

Comments
 (0)