[PATCH] D42467: FreeBSD needs also execinfo
David CARLIER via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Jan 24 04:06:28 PST 2018
devnexen created this revision.
devnexen added reviewers: joerg, vitalybuka.
devnexen created this object with visibility "All Users".
Herald added subscribers: cfe-commits, krytarowski, emaste.
As NetBSD, FreeBSD needs execinfo for backtrace's matters.
Repository:
rC Clang
https://reviews.llvm.org/D42467
Files:
lib/Driver/ToolChains/CommonArgs.cpp
Index: lib/Driver/ToolChains/CommonArgs.cpp
===================================================================
--- lib/Driver/ToolChains/CommonArgs.cpp
+++ lib/Driver/ToolChains/CommonArgs.cpp
@@ -553,7 +553,8 @@
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.131219.patch
Type: text/x-patch
Size: 668 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20180124/827ac0dc/attachment.bin>
More information about the cfe-commits
mailing list