[PATCH] D41054: Teach clang/NetBSD about additional dependencies for sanitizers
Phabricator via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Dec 18 23:11:23 PST 2017
This revision was automatically updated to reflect the committed changes.
Closed by commit rC321060: Teach clang/NetBSD about additional dependencies for sanitizers (authored by kamil, committed by ).
Repository:
rC Clang
https://reviews.llvm.org/D41054
Files:
lib/Driver/ToolChains/CommonArgs.cpp
Index: lib/Driver/ToolChains/CommonArgs.cpp
===================================================================
--- lib/Driver/ToolChains/CommonArgs.cpp
+++ lib/Driver/ToolChains/CommonArgs.cpp
@@ -549,6 +549,12 @@
TC.getTriple().getOS() != llvm::Triple::NetBSD &&
TC.getTriple().getOS() != llvm::Triple::RTEMS)
CmdArgs.push_back("-ldl");
+ // Required for forkpty on some OSes
+ if (TC.getTriple().getOS() == llvm::Triple::NetBSD)
+ CmdArgs.push_back("-lutil");
+ // Required for backtrace on some OSes
+ if (TC.getTriple().getOS() == llvm::Triple::NetBSD)
+ CmdArgs.push_back("-lexecinfo");
}
static void
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D41054.127466.patch
Type: text/x-patch
Size: 640 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20171219/96a4a1a4/attachment.bin>
More information about the cfe-commits
mailing list