Skip to content

Commit

Permalink
[clang] Allow the OpenBSD driver to link the libclang_rt.profile libr…
Browse files Browse the repository at this point in the history
…ary.

Differential Revision: https://reviews.llvm.org/D109244

(cherry picked from commit 466451c)
  • Loading branch information
fcambus authored and tstellar committed Sep 7, 2021
1 parent 1817392 commit a5e968b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions clang/lib/Driver/ToolChains/OpenBSD.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,8 @@ void openbsd::Linker::ConstructJob(Compilation &C, const JobAction &JA,
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(),
Expand Down

0 comments on commit a5e968b

Please sign in to comment.