Skip to content

Commit

Permalink
Add support of the next Ubuntu (Ubuntu 24.04 - Noble Numbat)
Browse files Browse the repository at this point in the history
Co-authored-by: Sylvestre Ledru <sylvestre@debian.org>
  • Loading branch information
ginggs and sylvestre committed Nov 1, 2023
1 parent 32d9144 commit 6266b96
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion clang/include/clang/Driver/Distro.h
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ class Distro {
UbuntuKinetic,
UbuntuLunar,
UbuntuMantic,
UbuntuNoble,
UnknownDistro
};

Expand Down Expand Up @@ -129,7 +130,7 @@ class Distro {
}

bool IsUbuntu() const {
return DistroVal >= UbuntuHardy && DistroVal <= UbuntuMantic;
return DistroVal >= UbuntuHardy && DistroVal <= UbuntuNoble;
}

bool IsAlpineLinux() const { return DistroVal == AlpineLinux; }
Expand Down
1 change: 1 addition & 0 deletions clang/lib/Driver/Distro.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ static Distro::DistroType DetectLsbRelease(llvm::vfs::FileSystem &VFS) {
.Case("kinetic", Distro::UbuntuKinetic)
.Case("lunar", Distro::UbuntuLunar)
.Case("mantic", Distro::UbuntuMantic)
.Case("noble", Distro::UbuntuNoble)
.Default(Distro::UnknownDistro);
return Version;
}
Expand Down

0 comments on commit 6266b96

Please sign in to comment.