mirror of
https://github.com/intel/llvm.git
synced 2026-01-24 08:30:34 +08:00
Fix for PR4887, Credit to Jonathan Gray.
llvm-svn: 85392
This commit is contained in:
@@ -2345,9 +2345,12 @@ void openbsd::Link::ConstructJob(Compilation &C, const JobAction &JA,
|
||||
}
|
||||
}
|
||||
|
||||
std::string Triple = getToolChain().getTripleString();
|
||||
if (Triple.substr(0, 6) == "x86_64")
|
||||
Triple.replace(0, 6, "amd64");
|
||||
CmdArgs.push_back(MakeFormattedString(Args,
|
||||
llvm::format("-L/usr/lib/gcc-lib/%s/3.3.5",
|
||||
getToolChain().getTripleString().c_str())));
|
||||
Triple.c_str())));
|
||||
|
||||
Args.AddAllArgs(CmdArgs, options::OPT_L);
|
||||
Args.AddAllArgs(CmdArgs, options::OPT_T_Group);
|
||||
|
||||
Reference in New Issue
Block a user