[PATCH] D158582: [AMDGPU] Respect unresolved symbol option if forwarded to linker
Jacob Lambert via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Aug 23 09:38:34 PDT 2023
lamb-j added a comment.
Is void amdgpu::Linker::ConstructJob() constructing a job for the host linker or the device linker? Or both?
> The `-Wl` and `-Xlinker` options are intended for the host linker and we intentionally do not pass them to the device linker.
In the example I'm testing, both -Wl and -Xlinker result in a forwarded option to the lld invocation. However, when testing with `-Xoffload-linker` , I just get the following:
warning: argument unused during compilation: '-Xoffload-linker --unresolved-symbols=ignore-all' [-Wunused-command-line-argument]
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D158582/new/
https://reviews.llvm.org/D158582
More information about the cfe-commits
mailing list