[clang] [Clang] Make the GPU toolchains implicitly link `-lm` and `-lc` (PR #98170)
Yaxun Liu via cfe-commits
cfe-commits at lists.llvm.org
Tue Jul 9 09:17:02 PDT 2024
================
@@ -633,6 +633,17 @@ void amdgpu::Linker::ConstructJob(Compilation &C, const JobAction &JA,
else if (Args.hasArg(options::OPT_mcpu_EQ))
CmdArgs.push_back(Args.MakeArgString(
"-plugin-opt=mcpu=" + Args.getLastArgValue(options::OPT_mcpu_EQ)));
+
----------------
yxsamliu wrote:
HIPAMD toolchain has its lld command argument handling in AMDGCN::Linker::constructLldCommand. Also need change there.
https://github.com/llvm/llvm-project/pull/98170
More information about the cfe-commits
mailing list