summaryrefslogtreecommitdiffstats
path: root/clang/lib/Driver/ToolChains.cpp
diff options
context:
space:
mode:
authorSylvestre Ledru <sylvestre@debian.org>2015-10-29 17:27:55 +0000
committerSylvestre Ledru <sylvestre@debian.org>2015-10-29 17:27:55 +0000
commit43b9571706bc5a0c5555ddba95a9e03b40efb44d (patch)
tree6f4e963ee733af0bf52d90a302429b6a56969317 /clang/lib/Driver/ToolChains.cpp
parentf16435d85ee0240603f4d0ecf5e757881536f5a7 (diff)
downloadbcm5719-llvm-43b9571706bc5a0c5555ddba95a9e03b40efb44d.tar.gz
bcm5719-llvm-43b9571706bc5a0c5555ddba95a9e03b40efb44d.zip
add support of the latest Ubuntu (Xenial Xerus)
llvm-svn: 251639
Diffstat (limited to 'clang/lib/Driver/ToolChains.cpp')
-rw-r--r--clang/lib/Driver/ToolChains.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/clang/lib/Driver/ToolChains.cpp b/clang/lib/Driver/ToolChains.cpp
index 97f17cf1b17..a33ed9f9add 100644
--- a/clang/lib/Driver/ToolChains.cpp
+++ b/clang/lib/Driver/ToolChains.cpp
@@ -3253,6 +3253,7 @@ enum Distro {
UbuntuUtopic,
UbuntuVivid,
UbuntuWily,
+ UbuntuXenial,
UnknownDistro
};
@@ -3267,7 +3268,7 @@ static bool IsDebian(enum Distro Distro) {
}
static bool IsUbuntu(enum Distro Distro) {
- return Distro >= UbuntuHardy && Distro <= UbuntuWily;
+ return Distro >= UbuntuHardy && Distro <= UbuntuXenial;
}
static Distro DetectDistro(const Driver &D, llvm::Triple::ArchType Arch) {
@@ -3297,6 +3298,7 @@ static Distro DetectDistro(const Driver &D, llvm::Triple::ArchType Arch) {
.Case("utopic", UbuntuUtopic)
.Case("vivid", UbuntuVivid)
.Case("wily", UbuntuWily)
+ .Case("xenial", UbuntuXenial)
.Default(UnknownDistro);
return Version;
}
OpenPOWER on IntegriCloud