[PATCH] D126299: [Driver] Support linking to compiler-rt for target AVR
Ben Shi via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Jun 1 01:41:46 PDT 2022
benshi001 added inline comments.
================
Comment at: clang/lib/Driver/ToolChains/AVR.cpp:463
+std::string
+AVRToolChain::buildCompilerRTBasename(const llvm::opt::ArgList &Args,
+ StringRef Component, FileType Type,
----------------
benshi001 wrote:
> This method decides the file name of compiler-rt, it is expected to be
>
> libclang_rt.builtins-avrfamily.a, such as
>
> libclang_rt.builtins-avr51.a
> libclang_rt.builtins-avrtiny.a
> libclang_rt.builtins-avrxmega3.a
This override method is unnecessary, the basic `ToolChain::buildCompilerRTBasename` has covered all cases for AVR, since
1. `.lib` suffix can never be generated for avr
2. `libclang_rt.builtins-avr5.a` is unexpected, which should be `
$resource_dir/lib/avr5/libclang_rt.builtins.a`.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D126299/new/
https://reviews.llvm.org/D126299
More information about the cfe-commits
mailing list