]> granicus.if.org Git - clang/commitdiff
Handle the NetBSD case in ToolChain::getOSLibName()
authorKamil Rytarowski <n54@gmx.com>
Tue, 27 Feb 2018 18:16:47 +0000 (18:16 +0000)
committerKamil Rytarowski <n54@gmx.com>
Tue, 27 Feb 2018 18:16:47 +0000 (18:16 +0000)
Return a new CompilerRT Path on NetBSD: "netbsd", instead of
getOS(), which returns a string like "netbsd8.9.12".

Sponsored by <The NetBSD Foundation>

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@326219 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Driver/ToolChain.cpp

index ed6918fe12f9915120237f4403d9c80af676c5b3..46865c979be7b6cfe8b79e30251b400b51e203f3 100644 (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: