Skip to content

Commit 90bd723

Browse files
committed
Add support of the next Ubuntu (Ubuntu 24.10 - Oracular Oriol)
1 parent 7298ae3 commit 90bd723

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
UbuntuLunar,
8080
UbuntuMantic,
8181
UbuntuNoble,
82+
UbuntuOracular,
8283
UnknownDistro
8384
};
8485

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

132133
bool IsUbuntu() const {
133-
return DistroVal >= UbuntuHardy && DistroVal <= UbuntuNoble;
134+
return DistroVal >= UbuntuHardy && DistroVal <= UbuntuOracular;
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
@@ -95,6 +95,7 @@ static Distro::DistroType DetectLsbRelease(llvm::vfs::FileSystem &VFS) {
9595
.Case("lunar", Distro::UbuntuLunar)
9696
.Case("mantic", Distro::UbuntuMantic)
9797
.Case("noble", Distro::UbuntuNoble)
98+
.Case("oracular", Distro::UbuntuOracular)
9899
.Default(Distro::UnknownDistro);
99100
return Version;
100101
}

0 commit comments

Comments
 (0)