Skip to content

Commit 6266b96

Browse files
ginggssylvestre
andcommitted
Add support of the next Ubuntu (Ubuntu 24.04 - Noble Numbat)
Co-authored-by: Sylvestre Ledru <[email protected]>
1 parent 32d9144 commit 6266b96

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
@@ -78,6 +78,7 @@ class Distro {
7878
UbuntuKinetic,
7979
UbuntuLunar,
8080
UbuntuMantic,
81+
UbuntuNoble,
8182
UnknownDistro
8283
};
8384

@@ -129,7 +130,7 @@ class Distro {
129130
}
130131

131132
bool IsUbuntu() const {
132-
return DistroVal >= UbuntuHardy && DistroVal <= UbuntuMantic;
133+
return DistroVal >= UbuntuHardy && DistroVal <= UbuntuNoble;
133134
}
134135

135136
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
@@ -94,6 +94,7 @@ static Distro::DistroType DetectLsbRelease(llvm::vfs::FileSystem &VFS) {
9494
.Case("kinetic", Distro::UbuntuKinetic)
9595
.Case("lunar", Distro::UbuntuLunar)
9696
.Case("mantic", Distro::UbuntuMantic)
97+
.Case("noble", Distro::UbuntuNoble)
9798
.Default(Distro::UnknownDistro);
9899
return Version;
99100
}

0 commit comments

Comments
 (0)