diff options
author | Sylvestre Ledru <sylvestre@debian.org> | 2016-07-19 14:00:57 +0000 |
---|---|---|
committer | Sylvestre Ledru <sylvestre@debian.org> | 2016-07-19 14:00:57 +0000 |
commit | d3078e7d06f7f4fca495443ee69e083a7776dc13 (patch) | |
tree | f1127e01c57a1f68c5faef72ba6a3699398cd8d8 | |
parent | 4a29007748508a43849536d627d341805315e9ee (diff) | |
download | bcm5719-llvm-d3078e7d06f7f4fca495443ee69e083a7776dc13.tar.gz bcm5719-llvm-d3078e7d06f7f4fca495443ee69e083a7776dc13.zip |
Add support of the latest Ubuntu (Yakkety Yak - 16.10)
llvm-svn: 275975
-rw-r--r-- | clang/lib/Driver/ToolChains.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/clang/lib/Driver/ToolChains.cpp b/clang/lib/Driver/ToolChains.cpp index f4a7fe64599..79f96cdaeac 100644 --- a/clang/lib/Driver/ToolChains.cpp +++ b/clang/lib/Driver/ToolChains.cpp @@ -3787,6 +3787,7 @@ enum Distro { UbuntuVivid, UbuntuWily, UbuntuXenial, + UbuntuYakkety, UnknownDistro }; @@ -3801,7 +3802,7 @@ static bool IsDebian(enum Distro Distro) { } static bool IsUbuntu(enum Distro Distro) { - return Distro >= UbuntuHardy && Distro <= UbuntuXenial; + return Distro >= UbuntuHardy && Distro <= UbuntuYakkety; } static Distro DetectDistro(const Driver &D, llvm::Triple::ArchType Arch) { @@ -3832,6 +3833,7 @@ static Distro DetectDistro(const Driver &D, llvm::Triple::ArchType Arch) { .Case("vivid", UbuntuVivid) .Case("wily", UbuntuWily) .Case("xenial", UbuntuXenial) + .Case("yakkety", UbuntuYakkety) .Default(UnknownDistro); if (Version != UnknownDistro) return Version; |