[PATCH] D151188: [lld] Find resource and lib dir
Martin Storsjö via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue May 23 13:00:47 PDT 2023
mstorsjo added a comment.
In D151188#4365673 <https://reviews.llvm.org/D151188#4365673>, @MaskRay wrote:
> Adding default library paths to the linker seems odd. The convention is to add the code to Clang Driver.
The issue with lld-link is that in MSVC environments, the convention is to invoke `link` or `lld-link` directly without going through `cl` or `clang-cl`. That's what makes things problematic here, and this is one potential path forward.
> ld.lld (and likely gold) doesn't add any default library path and it has been working fine.
> GNU ld may add some paths like `/usr/lib` that's already been added by gcc/clang drivers.
FWIW, IIRC there was a discussion a couple years ago, where iirc NetBSD wanted ld.lld to use some default paths to make it a better drop-in replacement for the GNU linker.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D151188/new/
https://reviews.llvm.org/D151188
More information about the llvm-commits
mailing list