[PATCH] D151188: [lld] Find resource and lib dir

Hans Wennborg via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed May 24 07:14:53 PDT 2023


hans added a comment.

In D151188#4367714 <https://reviews.llvm.org/D151188#4367714>, @thieta wrote:

>> I think I asked this at the meeting, but I forgot the answer already: is there a reason the compiler can't pass in the (relative) library paths as linker directives along with the library names in the .obj files?
>
> I am not sure, I thought we only talked about not being possible to pass absolute paths because of reproducibility.

(Answering my own question: I guess a relative path doesn't work since it would have to be relative to the CWD when invoking the linker, and we don't know that. We could however invent something like rpath's `$origin` so the compiler could pass a directive like `/libpath:$origin\..\lib\clang\16\lib\windows`. But I think having the linker find that dir by itself is better.)


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