Details
- Reviewers
aykevl dylanmckay
Diff Detail
Event Timeline
clang/lib/Driver/ToolChains/AVR.cpp | ||
---|---|---|
463 | 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 | |
482 | This method decides the library path of compiler-rt, it is /opt/avr-tool-chain/lib/clang/14.0.1/lib/avr /opt/avr-tool-chain/lib/clang/14.0.1/lib/ | |
492 | Currently we still use libgcc if --rtlib option is not specified. | |
541 | Currently we only allow --rtlib=libgcc and --rtlib=compiler-rt | |
564 | If --rtlib is not specified or specified to libgcc, then we generate -L$PATH_TO_LIBGCC | |
595 | If --rtlib is not specified or specified to libgcc, then we generate -lgcc | |
608 | If --rtlib=compiler-rt is explicitly specified, we directly put the libclang.builtins-avrxxx.a as input file, other than -lclang.builtins-avrxxx, this is a tradition from other platforms, such as x86 and arm. |
It seems that the expected path should be $resource_dir/lib/avr5/libclang_rt.builtins.a, other than libclang_rt.builtins-avr5.a. I will fix that.
clang/lib/Driver/ToolChains/AVR.cpp | ||
---|---|---|
463 | This override method is unnecessary, the basic ToolChain::buildCompilerRTBasename has covered all cases for AVR, since
$resource_dir/lib/avr5/libclang_rt.builtins.a`. |
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