[PATCH] D107682: [AVR][clang] Improve search for avr-libc installation path
    Matt Jacobson via Phabricator via cfe-commits 
    cfe-commits at lists.llvm.org
       
    Sat Aug  7 01:43:13 PDT 2021
    
    
  
mhjacobson added a comment.
In D107682#2932599 <https://reviews.llvm.org/D107682#2932599>, @benshi001 wrote:
> @mhjacobson Could you please check if my modification also works as expected on your platform ?
Hm... it doesn't, because there aren't enough `..`s.
Here's what my directory tree looks like.  My gcc install consists of:
  /opt/local/bin/avr-gcc-10.3.0
  /opt/local/lib/gcc/avr/10.3.0/libgcc.a
  /opt/local/libexec/gcc/avr/10.3.0/cc1
And avr-libc is at:
  /opt/local/avr/lib/libc.a
  /opt/local/avr/include/stdio.h
It would work if you appended four `..`s (which is effectively what GCC does, since it backs up to the "prefix", which in my case is `/opt/local/`).
CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D107682/new/
https://reviews.llvm.org/D107682
    
    
More information about the cfe-commits
mailing list