[PATCH] D83015: [Driver] Add --ld-path= and deprecate -fuse-ld=/abs/path and -fuse-ld=rel/path
Fangrui Song via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Sep 15 09:34:03 PDT 2022
MaskRay added a comment.
In D83015#3792397 <https://reviews.llvm.org/D83015#3792397>, @thakis wrote:
> `LinkerIsLLD` isn't getting set when `--ld-path` is used. (It also isn't getting set when using `-fuse-ld=` with an absolute path.)
>
> How do you imagine using an absolute path and telling clang "the linker is lld, you can assume it's built at the same rev as you" in this new world should look like? Pass both `-fuse-ld=lld` and `--ld-path=path/to/lld`?
Yes, specify both options. -fuse-ld= specifies the flavor while --ld-path= specifies a path the Clang Driver does not want to detect.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D83015/new/
https://reviews.llvm.org/D83015
More information about the cfe-commits
mailing list