Skip to content

Commit d1829c3

Browse files
committed
Add support of the next Ubuntu (Ubuntu 23.04 - Lunar Lobster)
1 parent 23831f0 commit d1829c3

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
@@ -76,6 +76,7 @@ class Distro {
7676
UbuntuImpish,
7777
UbuntuJammy,
7878
UbuntuKinetic,
79+
UbuntuLunar,
7980
UnknownDistro
8081
};
8182

@@ -127,7 +128,7 @@ class Distro {
127128
}
128129

129130
bool IsUbuntu() const {
130-
return DistroVal >= UbuntuHardy && DistroVal <= UbuntuKinetic;
131+
return DistroVal >= UbuntuHardy && DistroVal <= UbuntuLunar;
131132
}
132133

133134
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("impish", Distro::UbuntuImpish)
9393
.Case("jammy", Distro::UbuntuJammy)
9494
.Case("kinetic", Distro::UbuntuKinetic)
95+
.Case("lunar", Distro::UbuntuLunar)
9596
.Default(Distro::UnknownDistro);
9697
return Version;
9798
}

0 commit comments

Comments
 (0)