[PATCH] D107682: [AVR][clang] Improve search for avr-libc installation path

Fangrui Song via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Sun Aug 8 09:58:49 PDT 2021


MaskRay added inline comments.


================
Comment at: clang/lib/Driver/ToolChains/AVR.cpp:460
+  if (llvm::sys::fs::is_directory(Path))
+    return Optional<std::string>(Path);
+  Path = GCCParent + "/../avr";
----------------
`return Path;`


================
Comment at: clang/test/Driver/avr-toolchain.c:1
 // A basic clang -cc1 command-line.
 
----------------
You can UNSUPPORT windows if you don't want to wrestle with \ and / path separators.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D107682/new/

https://reviews.llvm.org/D107682



More information about the cfe-commits mailing list