[AVR][clang] Improve search for avr-libc installation path
authorBen Shi <powerman1st@163.com>
Sat, 7 Aug 2021 08:29:27 +0000 (16:29 +0800)
committerBen Shi <powerman1st@163.com>
Tue, 17 Aug 2021 03:51:35 +0000 (11:51 +0800)
commitb31199bab4865deef4e778d7a028c8ec64285654
tree81dc7328c488e50308caf402e57b6f7590989e22
parent686607676f720a27b5946d3cb7800e18181a312f
[AVR][clang] Improve search for avr-libc installation path

Search avr-libc path according to avr-gcc installation at first,
then other possible installed pathes.

Reviewed By: MaskRay

Differential Revision: https://reviews.llvm.org/D107682
clang/lib/Driver/ToolChains/AVR.cpp
clang/test/Driver/Inputs/basic_avr_tree_2/opt/local/avr/include/.keep [new file with mode: 0644]
clang/test/Driver/Inputs/basic_avr_tree_2/opt/local/avr/lib/libavr.a [new file with mode: 0644]
clang/test/Driver/Inputs/basic_avr_tree_2/opt/local/lib/gcc/avr/10.3.0/libgcc.a [new file with mode: 0644]
clang/test/Driver/Inputs/basic_avr_tree_2/usr/avr/include/.keep [new file with mode: 0644]
clang/test/Driver/Inputs/basic_avr_tree_2/usr/avr/lib/libavr.a [new file with mode: 0644]
clang/test/Driver/avr-toolchain.c