r326219 - Handle the NetBSD case in ToolChain::getOSLibName()
Kamil Rytarowski via cfe-commits
cfe-commits at lists.llvm.org
Tue Feb 27 10:16:48 PST 2018
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:
More information about the cfe-commits
mailing list