[PATCH] D121992: [Clang] [Driver] Add option to set alternative toolchain path
Hubert Tong via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Mar 31 07:22:03 PDT 2022
hubert.reinterpretcast added a comment.
In D121992#3418443 <https://reviews.llvm.org/D121992#3418443>, @MaskRay wrote:
> If you intend to overlay ld.so, you'll necessarily overlay libc, then --sysroot seems just unneeded at all.
Why? The header and library search paths are not restricted to artifacts from libc. I had consulted some Advance Toolchain developers and they indicted that it was important for paths from the `--sysroot` to be incorporated (as GCC from the Advance Toolchain does).
The library search order has the issue of needing the multiarch/"OS lib dir" paths from both the overlay toolchain and the sysroot before attempting fallback plain-"lib" paths. Aside from a new option, is there a way to achieve that?
I agree, however, that the new option doesn't have to incorporate effects on what the `--dyld-prefix` default is.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D121992/new/
https://reviews.llvm.org/D121992
More information about the cfe-commits
mailing list