From 9b1996ec8626b63afba9f575b1ef35d7a30ca667 Mon Sep 17 00:00:00 2001 From: Kamil Rytarowski Date: Tue, 27 Feb 2018 18:16:47 +0000 Subject: [PATCH] Handle the NetBSD case in ToolChain::getOSLibName() Return a new CompilerRT Path on NetBSD: "netbsd", instead of getOS(), which returns a string like "netbsd8.9.12". Sponsored by llvm-svn: 326219 --- clang/lib/Driver/ToolChain.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/clang/lib/Driver/ToolChain.cpp b/clang/lib/Driver/ToolChain.cpp index ed6918f..46865c9 100644 --- a/clang/lib/Driver/ToolChain.cpp +++ b/clang/lib/Driver/ToolChain.cpp @@ -327,6 +327,8 @@ StringRef ToolChain::getOSLibName() const { switch (Triple.getOS()) { case llvm::Triple::FreeBSD: return "freebsd"; + case llvm::Triple::NetBSD: + return "netbsd"; case llvm::Triple::Solaris: return "sunos"; default: -- 2.7.4