[PATCH] D45662: Fuzzer, add libcxx for OpenBSD
David CARLIER via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Apr 16 13:24:55 PDT 2018
devnexen updated this revision to Diff 142686.
devnexen added a comment.
- Putting the change on the driver itself.
https://reviews.llvm.org/D45662
Files:
lib/Driver/ToolChains/OpenBSD.cpp
Index: lib/Driver/ToolChains/OpenBSD.cpp
===================================================================
--- lib/Driver/ToolChains/OpenBSD.cpp
+++ lib/Driver/ToolChains/OpenBSD.cpp
@@ -194,6 +194,9 @@
}
if (NeedsSanitizerDeps) {
CmdArgs.push_back(ToolChain.getCompilerRTArgString(Args, "builtins", false));
+ if (getToolChain().getSanitizerArgs().needsFuzzer() &&
+ !Args.hasArg(options::OPT_shared))
+ CmdArgs.push_back(Args.hasArg(options::OPT_pg) ? "-lc++_p" : "-lc++");
linkSanitizerRuntimeDeps(ToolChain, CmdArgs);
}
if (NeedsXRayDeps) {
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D45662.142686.patch
Type: text/x-patch
Size: 600 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20180416/3db4fa6c/attachment.bin>
More information about the cfe-commits
mailing list