[PATCH] D107672: [AVR][clang] Search for avr-libc in $SYSROOT/avr

Matt Jacobson via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Aug 6 15:34:56 PDT 2021


mhjacobson created this revision.
mhjacobson added reviewers: benshi001, MaskRay, dylanmckay.
Herald added a subscriber: Jim.
mhjacobson requested review of this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.

The paths in PossibleAVRLibcLocations are appended with `/lib/` and `/include/` to find the binaries and headers, respectively, for avr-libc.

It's common for avr-libc to live at `$SYSROOT/avr/{lib,include}/`, e.g. when `$SYSROOT` is, for example, `/opt/local/`.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D107672

Files:
  clang/lib/Driver/ToolChains/AVR.cpp


Index: clang/lib/Driver/ToolChains/AVR.cpp
===================================================================
--- clang/lib/Driver/ToolChains/AVR.cpp
+++ clang/lib/Driver/ToolChains/AVR.cpp
@@ -298,6 +298,7 @@
 }
 
 const StringRef PossibleAVRLibcLocations[] = {
+    "/avr",
     "/usr/avr",
     "/usr/lib/avr",
 };


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D107672.364897.patch
Type: text/x-patch
Size: 319 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20210806/2ea9f59f/attachment.bin>


More information about the cfe-commits mailing list