summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSylvestre Ledru <sylvestre@debian.org>2018-11-04 17:41:41 +0000
committerSylvestre Ledru <sylvestre@debian.org>2018-11-04 17:41:41 +0000
commit99682d0af7eb152dc59b8771a49936903d38ce4b (patch)
tree9ba24ad7b186206364ae37e39710067c0409ec4a
parented6a0a817ffdd4078c25336b473094c60f98b509 (diff)
downloadbcm5719-llvm-99682d0af7eb152dc59b8771a49936903d38ce4b.tar.gz
bcm5719-llvm-99682d0af7eb152dc59b8771a49936903d38ce4b.zip
Add support of the next Ubuntu (Ubuntu 19.04 - Disco Dingo)
llvm-svn: 346103
-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 d3b0bc986d8..3cf70482981 100644
--- a/clang/include/clang/Driver/Distro.h
+++ b/clang/include/clang/Driver/Distro.h
@@ -62,6 +62,7 @@ public:
UbuntuArtful,
UbuntuBionic,
UbuntuCosmic,
+ UbuntuDisco,
UnknownDistro
};
@@ -115,7 +116,7 @@ public:
}
bool IsUbuntu() const {
- return DistroVal >= UbuntuHardy && DistroVal <= UbuntuCosmic;
+ return DistroVal >= UbuntuHardy && DistroVal <= UbuntuDisco;
}
bool IsAlpineLinux() const {
diff --git a/clang/lib/Driver/Distro.cpp b/clang/lib/Driver/Distro.cpp
index fbfc041304a..eb537c87e75 100644
--- a/clang/lib/Driver/Distro.cpp
+++ b/clang/lib/Driver/Distro.cpp
@@ -51,6 +51,7 @@ static Distro::DistroType DetectDistro(llvm::vfs::FileSystem &VFS) {
.Case("artful", Distro::UbuntuArtful)
.Case("bionic", Distro::UbuntuBionic)
.Case("cosmic", Distro::UbuntuCosmic)
+ .Case("disco", Distro::UbuntuDisco)
.Default(Distro::UnknownDistro);
if (Version != Distro::UnknownDistro)
return Version;
OpenPOWER on IntegriCloud