From 68e53bf8c0bede46b4baf5c3d8d93cefe6ef2b37 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 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@326219 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Driver/ToolChain.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/Driver/ToolChain.cpp b/lib/Driver/ToolChain.cpp index ed6918fe12..46865c979b 100644 --- a/lib/Driver/ToolChain.cpp +++ b/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.40.0