Skip to content

Commit a709787

Browse files
committed
Add support of the next Ubuntu (Ubuntu 22.04 - Jammy Jellyfish)
It is going to be a LTS release
1 parent b09f2ee commit a709787

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
@@ -73,6 +73,7 @@ class Distro {
7373
UbuntuGroovy,
7474
UbuntuHirsute,
7575
UbuntuImpish,
76+
UbuntuJammy,
7677
UnknownDistro
7778
};
7879

@@ -124,7 +125,7 @@ class Distro {
124125
}
125126

126127
bool IsUbuntu() const {
127-
return DistroVal >= UbuntuHardy && DistroVal <= UbuntuImpish;
128+
return DistroVal >= UbuntuHardy && DistroVal <= UbuntuJammy;
128129
}
129130

130131
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
@@ -90,6 +90,7 @@ static Distro::DistroType DetectLsbRelease(llvm::vfs::FileSystem &VFS) {
9090
.Case("groovy", Distro::UbuntuGroovy)
9191
.Case("hirsute", Distro::UbuntuHirsute)
9292
.Case("impish", Distro::UbuntuImpish)
93+
.Case("jammy", Distro::UbuntuJammy)
9394
.Default(Distro::UnknownDistro);
9495
return Version;
9596
}

0 commit comments

Comments
 (0)