[PATCH] D107682: [AVR][clang] Improve search for avr-libc installation path
Ben Shi via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Sat Aug 7 05:17:19 PDT 2021
benshi001 added a comment.
In D107682#2932607 <https://reviews.llvm.org/D107682#2932607>, @mhjacobson wrote:
> For other examples of using four `..`s, look in `Gnu.cpp`, where there are several places where `getParentLibPath()` is appended with `/../`. `AddMultilibPaths()`, `PushPPaths()`.
>
> `getParentLibPath()`, in turn, is `GCCInstallPath/../../../`
Thanks for your help. I have updated my patch. Now it should work for both your platform and mine. It search `GCCRoot.getParentLibPath()/avr` first, otherwise `GCCRoot.getParentLibPath()/../avr`.
Please help me check.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D107682/new/
https://reviews.llvm.org/D107682
More information about the cfe-commits
mailing list