[PATCH] D127186: [Driver] Support linking to compiler-rt for target AVR
Ben Shi via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Jun 7 20:05:29 PDT 2022
benshi001 added inline comments.
================
Comment at: clang/lib/Driver/ToolChains/AVR.cpp:428
+}
+
void AVR::Linker::ConstructJob(Compilation &C, const JobAction &JA,
----------------
1. Though I expect each device family has its own optimized build of compiler-rt binary, I found most targets such as arm/x86 use unique `libclang-rt.builtins.a`. So I will follow this tradition for avr, a compitable avr binary built with the minimal instruction set is used.
2. I have to explicitly inherit `getCompilerRTPath`, since AVR can never be a host environment, the default path `$resource_dir/lib` is not suitable for AVR.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D127186/new/
https://reviews.llvm.org/D127186
More information about the cfe-commits
mailing list