[AIX][r] Do not call AddFilePathLibArgs with -r
We do not want to add file path lib args when -r is specified. Differential Revision: https://reviews.llvm.org/D146578
This commit is contained in:
parent
06006f438e
commit
4dc04557d7
|
@ -234,8 +234,8 @@ void aix::Linker::ConstructJob(Compilation &C, const JobAction &JA,
|
|||
|
||||
// Add directory to library search path.
|
||||
Args.AddAllArgs(CmdArgs, options::OPT_L);
|
||||
ToolChain.AddFilePathLibArgs(Args, CmdArgs);
|
||||
if (!Args.hasArg(options::OPT_r)) {
|
||||
ToolChain.AddFilePathLibArgs(Args, CmdArgs);
|
||||
ToolChain.addProfileRTLibs(Args, CmdArgs);
|
||||
|
||||
if (getToolChain().ShouldLinkCXXStdlib(Args))
|
||||
|
|
Loading…
Reference in New Issue
Block a user