[clang] 71e7106 - [AVR][clang] Add '$SYSROOT/avr' to possible avr-libc locations
Ben Shi via cfe-commits
cfe-commits at lists.llvm.org
Fri Aug 6 19:25:38 PDT 2021
Author: Matt Jacobson
Date: 2021-08-07T10:24:14+08:00
New Revision: 71e71067f3fa621d961e2607f1c8cea7cdce3f9d
URL: https://github.com/llvm/llvm-project/commit/71e71067f3fa621d961e2607f1c8cea7cdce3f9d
DIFF: https://github.com/llvm/llvm-project/commit/71e71067f3fa621d961e2607f1c8cea7cdce3f9d.diff
LOG: [AVR][clang] Add '$SYSROOT/avr' to possible avr-libc locations
Reviewed by: benshi001
Differential Revision: https://reviews.llvm.org/D107672
Added:
Modified:
clang/lib/Driver/ToolChains/AVR.cpp
Removed:
################################################################################
diff --git a/clang/lib/Driver/ToolChains/AVR.cpp b/clang/lib/Driver/ToolChains/AVR.cpp
index 18c6f41e22b1a..cebf9d13a4ce0 100644
--- a/clang/lib/Driver/ToolChains/AVR.cpp
+++ b/clang/lib/Driver/ToolChains/AVR.cpp
@@ -298,6 +298,7 @@ llvm::Optional<unsigned> GetMCUSectionAddressData(StringRef MCUName) {
}
const StringRef PossibleAVRLibcLocations[] = {
+ "/avr",
"/usr/avr",
"/usr/lib/avr",
};
More information about the cfe-commits
mailing list