Skip to content

Commit 7e2edf9

Browse files
author
etiotto
committed
[compiler-rt][AIX]: Link compiler-rt profile library when -fprofile-generate is specified
This patch enhances the clang driver to link the runtime profile library on AIX when the -fprofile-generate option is used. Reviewed By: phosek Differentail Revision: https://reviews.llvm.org/D90641
1 parent 6855a60 commit 7e2edf9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

clang/lib/Driver/ToolChains/AIX.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,7 @@ void aix::Linker::ConstructJob(Compilation &C, const JobAction &JA,
151151
// Add directory to library search path.
152152
Args.AddAllArgs(CmdArgs, options::OPT_L);
153153
ToolChain.AddFilePathLibArgs(Args, CmdArgs);
154+
ToolChain.addProfileRTLibs(Args, CmdArgs);
154155

155156
if (getToolChain().ShouldLinkCXXStdlib(Args))
156157
getToolChain().AddCXXStdlibLibArgs(Args, CmdArgs);

0 commit comments

Comments
 (0)