[clang] [RISCV] Merging RISCVToolChain and BareMetal toolchains (PR #118809)
Kito Cheng via cfe-commits
cfe-commits at lists.llvm.org
Fri Dec 6 05:12:34 PST 2024
================
@@ -503,12 +624,22 @@ void baremetal::Linker::ConstructJob(Compilation &C, const JobAction &JA,
const llvm::Triple::ArchType Arch = TC.getArch();
const llvm::Triple &Triple = getToolChain().getEffectiveTriple();
- AddLinkerInputs(TC, Inputs, Args, CmdArgs, JA);
+ if (!D.SysRoot.empty())
+ CmdArgs.push_back(Args.MakeArgString("--sysroot=" + D.SysRoot));
+ Args.addAllArgs(CmdArgs, {options::OPT_u});
----------------
kito-cheng wrote:
Forgot to explicitly mention that here, move this down a little bit, and merge together with other linker options.
https://github.com/llvm/llvm-project/pull/118809
More information about the cfe-commits
mailing list