summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSylvestre Ledru <sylvestre@debian.org>2017-05-04 12:46:38 +0000
committerSylvestre Ledru <sylvestre@debian.org>2017-05-04 12:46:38 +0000
commit6cf800a6f7b3438f0531b6efd2b3c3da7dd9ba12 (patch)
tree6e934b99728ca584544f6a8e10e4d605230f2e4c
parent45d5cf47bfdab34f43583eee3f61c4e244edeedd (diff)
downloadbcm5719-llvm-6cf800a6f7b3438f0531b6efd2b3c3da7dd9ba12.tar.gz
bcm5719-llvm-6cf800a6f7b3438f0531b6efd2b3c3da7dd9ba12.zip
Add support of the next Ubuntu (Ubuntu 17.10 - Artful Aardvark)
llvm-svn: 302143
-rw-r--r--clang/include/clang/Driver/Distro.h5
-rw-r--r--clang/lib/Driver/Distro.cpp1
2 files changed, 4 insertions, 2 deletions
diff --git a/clang/include/clang/Driver/Distro.h b/clang/include/clang/Driver/Distro.h
index e2fb8b64335..fab49862a44 100644
--- a/clang/include/clang/Driver/Distro.h
+++ b/clang/include/clang/Driver/Distro.h
@@ -57,6 +57,7 @@ public:
UbuntuXenial,
UbuntuYakkety,
UbuntuZesty,
+ UbuntuArtful,
UnknownDistro
};
@@ -110,9 +111,9 @@ public:
}
bool IsUbuntu() const {
- return DistroVal >= UbuntuHardy && DistroVal <= UbuntuZesty;
+ return DistroVal >= UbuntuHardy && DistroVal <= UbuntuArtful;
}
-
+
/// @}
};
diff --git a/clang/lib/Driver/Distro.cpp b/clang/lib/Driver/Distro.cpp
index d305b179449..2df297f3cfc 100644
--- a/clang/lib/Driver/Distro.cpp
+++ b/clang/lib/Driver/Distro.cpp
@@ -47,6 +47,7 @@ static Distro::DistroType DetectDistro(vfs::FileSystem &VFS) {
.Case("xenial", Distro::UbuntuXenial)
.Case("yakkety", Distro::UbuntuYakkety)
.Case("zesty", Distro::UbuntuZesty)
+ .Case("artful", Distro::UbuntuArtful)
.Default(Distro::UnknownDistro);
if (Version != Distro::UnknownDistro)
return Version;
OpenPOWER on IntegriCloud