[PATCH] D42467: FreeBSD needs also execinfo
Phabricator via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Jan 24 15:11:26 PST 2018
This revision was automatically updated to reflect the committed changes.
Closed by commit rL323387: FreeBSD needs also execinfo (in sanitizers) (authored by kamil, committed by ).
Herald added a subscriber: llvm-commits.
Changed prior to commit:
https://reviews.llvm.org/D42467?vs=131359&id=131365#toc
Repository:
rL LLVM
https://reviews.llvm.org/D42467
Files:
cfe/trunk/lib/Driver/ToolChains/CommonArgs.cpp
Index: cfe/trunk/lib/Driver/ToolChains/CommonArgs.cpp
===================================================================
--- cfe/trunk/lib/Driver/ToolChains/CommonArgs.cpp
+++ cfe/trunk/lib/Driver/ToolChains/CommonArgs.cpp
@@ -549,11 +549,12 @@
TC.getTriple().getOS() != llvm::Triple::NetBSD &&
TC.getTriple().getOS() != llvm::Triple::RTEMS)
CmdArgs.push_back("-ldl");
- // Required for forkpty on some OSes
+ // Required for functions like 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)
+ if (TC.getTriple().getOS() == llvm::Triple::NetBSD ||
+ TC.getTriple().getOS() == llvm::Triple::FreeBSD)
CmdArgs.push_back("-lexecinfo");
// Required for kvm (kernel memory interface) on some OSes
if (TC.getTriple().getOS() == llvm::Triple::NetBSD)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D42467.131365.patch
Type: text/x-patch
Size: 938 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20180124/f9c4a65c/attachment.bin>
More information about the cfe-commits
mailing list