From f837911b75b7ec224b2c65816782fdcca78eefa8 Mon Sep 17 00:00:00 2001 From: Sylvestre Ledru Date: Tue, 19 Jul 2016 14:00:57 +0000 Subject: [PATCH] Add support of the latest Ubuntu (Yakkety Yak - 16.10) git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@275975 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Driver/ToolChains.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/Driver/ToolChains.cpp b/lib/Driver/ToolChains.cpp index f4a7fe6459..79f96cdaea 100644 --- a/lib/Driver/ToolChains.cpp +++ b/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; -- 2.40.0