summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--clang/include/clang/Driver/Distro.h3
-rw-r--r--clang/lib/Driver/Distro.cpp1
2 files changed, 3 insertions, 1 deletions
diff --git a/clang/include/clang/Driver/Distro.h b/clang/include/clang/Driver/Distro.h
index 67dc764fb7d..da8f819dee9 100644
--- a/clang/include/clang/Driver/Distro.h
+++ b/clang/include/clang/Driver/Distro.h
@@ -65,6 +65,7 @@ public:
UbuntuCosmic,
UbuntuDisco,
UbuntuEoan,
+ UbuntuFocal,
UnknownDistro
};
@@ -118,7 +119,7 @@ public:
}
bool IsUbuntu() const {
- return DistroVal >= UbuntuHardy && DistroVal <= UbuntuEoan;
+ return DistroVal >= UbuntuHardy && DistroVal <= UbuntuFocal;
}
bool IsAlpineLinux() const {
diff --git a/clang/lib/Driver/Distro.cpp b/clang/lib/Driver/Distro.cpp
index f2a3074d1e7..92e04108a7e 100644
--- a/clang/lib/Driver/Distro.cpp
+++ b/clang/lib/Driver/Distro.cpp
@@ -52,6 +52,7 @@ static Distro::DistroType DetectDistro(llvm::vfs::FileSystem &VFS) {
.Case("cosmic", Distro::UbuntuCosmic)
.Case("disco", Distro::UbuntuDisco)
.Case("eoan", Distro::UbuntuEoan)
+ .Case("focal", Distro::UbuntuFocal)
.Default(Distro::UnknownDistro);
if (Version != Distro::UnknownDistro)
return Version;
OpenPOWER on IntegriCloud