Skip to content

Commit

Permalink
Add support of the next Ubuntu (Ubuntu 23.10 - Mantic Minotaur)
Browse files Browse the repository at this point in the history
  • Loading branch information
sylvestre committed May 10, 2023
1 parent 890aa28 commit ddfb974
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 @@ -77,6 +77,7 @@ class Distro {
UbuntuJammy,
UbuntuKinetic,
UbuntuLunar,
UbuntuMantic,
UnknownDistro
};

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

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

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 @@ -93,6 +93,7 @@ static Distro::DistroType DetectLsbRelease(llvm::vfs::FileSystem &VFS) {
.Case("jammy", Distro::UbuntuJammy)
.Case("kinetic", Distro::UbuntuKinetic)
.Case("lunar", Distro::UbuntuLunar)
.Case("mantic", Distro::UbuntuMantic)
.Default(Distro::UnknownDistro);
return Version;
}
Expand Down

0 comments on commit ddfb974

Please sign in to comment.