Author: kamil Date: Tue Feb 27 10:16:47 2018 New Revision: 326219 URL: http://llvm.org/viewvc/llvm-project?rev=326219&view=rev Log: 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 <The NetBSD Foundation> Modified: cfe/trunk/lib/Driver/ToolChain.cpp Modified: cfe/trunk/lib/Driver/ToolChain.cpp URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Driver/ToolChain.cpp?rev=326219&r1=326218&r2=326219&view=diff ============================================================================== --- cfe/trunk/lib/Driver/ToolChain.cpp (original) +++ cfe/trunk/lib/Driver/ToolChain.cpp Tue Feb 27 10:16:47 2018 @@ -327,6 +327,8 @@ StringRef ToolChain::getOSLibName() cons switch (Triple.getOS()) { case llvm::Triple::FreeBSD: return "freebsd"; + case llvm::Triple::NetBSD: + return "netbsd"; case llvm::Triple::Solaris: return "sunos"; default: _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits