[PATCH] D109244: [clang] Allow the OpenBSD driver to link the libclang_rt.profile library.
Frederic Cambus via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Sep 3 09:36:16 PDT 2021
fcambus created this revision.
fcambus added a reviewer: brad.
fcambus requested review of this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.
With this change, passing -fprofile-instr-generate -fcoverage-mapping
when building programs will attempt linking against libclang_rt.profile.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D109244
Files:
clang/lib/Driver/ToolChains/OpenBSD.cpp
Index: clang/lib/Driver/ToolChains/OpenBSD.cpp
===================================================================
--- clang/lib/Driver/ToolChains/OpenBSD.cpp
+++ clang/lib/Driver/ToolChains/OpenBSD.cpp
@@ -223,6 +223,8 @@
CmdArgs.push_back(Args.MakeArgString(ToolChain.GetFilePath(crtend)));
}
+ ToolChain.addProfileRTLibs(Args, CmdArgs);
+
const char *Exec = Args.MakeArgString(ToolChain.GetLinkerPath());
C.addCommand(std::make_unique<Command>(JA, *this,
ResponseFileSupport::AtFileCurCP(),
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D109244.370607.patch
Type: text/x-patch
Size: 553 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20210903/31cd210c/attachment.bin>
More information about the cfe-commits
mailing list