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>

llvm-svn: 326219
This commit is contained in:
Kamil Rytarowski 2018-02-27 18:16:47 +00:00
parent b2f9bb9e54
commit 9b1996ec86
1 changed files with 2 additions and 0 deletions

View File

@ -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: