Skip to content

Commit a5e968b

Browse files
fcambuststellar
authored andcommitted
[clang] Allow the OpenBSD driver to link the libclang_rt.profile library.
Differential Revision: https://reviews.llvm.org/D109244 (cherry picked from commit 466451c)
1 parent 1817392 commit a5e968b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

clang/lib/Driver/ToolChains/OpenBSD.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -221,6 +221,8 @@ void openbsd::Linker::ConstructJob(Compilation &C, const JobAction &JA,
221221
CmdArgs.push_back(Args.MakeArgString(ToolChain.GetFilePath(crtend)));
222222
}
223223

224+
ToolChain.addProfileRTLibs(Args, CmdArgs);
225+
224226
const char *Exec = Args.MakeArgString(ToolChain.GetLinkerPath());
225227
C.addCommand(std::make_unique<Command>(JA, *this,
226228
ResponseFileSupport::AtFileCurCP(),

0 commit comments

Comments
 (0)