Skip to content

Commit cadddaf

Browse files
authored
[clang] Remove support for really old Ubuntu releases (#162778)
After 07ca4db remove support for really old and older Ubunutu (Hardy and Intrepid) releases.
1 parent 0df4e63 commit cadddaf

File tree

2 files changed

+1
-11
lines changed

2 files changed

+1
-11
lines changed

clang/include/clang/Driver/Distro.h

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,6 @@ class Distro {
4848
Fedora,
4949
Gentoo,
5050
OpenSUSE,
51-
UbuntuHardy,
52-
UbuntuIntrepid,
53-
UbuntuJaunty,
54-
UbuntuKarmic,
55-
UbuntuLucid,
5651
UbuntuMaverick,
5752
UbuntuNatty,
5853
UbuntuOneiric,
@@ -135,7 +130,7 @@ class Distro {
135130
}
136131

137132
bool IsUbuntu() const {
138-
return DistroVal >= UbuntuHardy && DistroVal <= UbuntuQuesting;
133+
return DistroVal >= UbuntuMaverick && DistroVal <= UbuntuQuesting;
139134
}
140135

141136
bool IsAlpineLinux() const { return DistroVal == AlpineLinux; }

clang/lib/Driver/Distro.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -61,11 +61,6 @@ static Distro::DistroType DetectLsbRelease(llvm::vfs::FileSystem &VFS) {
6161
if (Version == Distro::UnknownDistro &&
6262
Line.starts_with("DISTRIB_CODENAME="))
6363
Version = llvm::StringSwitch<Distro::DistroType>(Line.substr(17))
64-
.Case("hardy", Distro::UbuntuHardy)
65-
.Case("intrepid", Distro::UbuntuIntrepid)
66-
.Case("jaunty", Distro::UbuntuJaunty)
67-
.Case("karmic", Distro::UbuntuKarmic)
68-
.Case("lucid", Distro::UbuntuLucid)
6964
.Case("maverick", Distro::UbuntuMaverick)
7065
.Case("natty", Distro::UbuntuNatty)
7166
.Case("oneiric", Distro::UbuntuOneiric)

0 commit comments

Comments
 (0)