[PATCH] D124794: [LLD][RISCV][NFC] Allow GNU linker to run RISCV LLD tests
Greg McGary via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon May 2 12:33:35 PDT 2022
gkm added a comment.
In D124794#3486448 <https://reviews.llvm.org/D124794#3486448>, @MaskRay wrote:
> I agree that people should just symlink `ld.lld` to ld.bfd to check this, or hack their local `lit.local.cfg`.
> Such changes do not need to be in the upstream.
That would be easy if a single GNU ld were a drop-in replacement for ld.lld, but GNU ld is split into 32-bit and 64-bit configs.
I suppose a wrapper script that inspects ELF type of objects can suffice. For that matter, a wrapper script could find the right instance of GNU ld for any arch and ABI.
OK, you talked me into that approach.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D124794/new/
https://reviews.llvm.org/D124794
More information about the llvm-commits
mailing list