[PATCH] D123612: [Driver] Support linking to compiler-rt on AVR

Fangrui Song via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri May 6 21:45:53 PDT 2022


MaskRay added inline comments.


================
Comment at: clang/lib/Driver/ToolChains/AVR.cpp:430
+  // libgcc distributed with avr-gcc always named 'libgcc.a' even on windows.
+  return (Twine("libclang_rt.") + Component + Arch + ".a").str();
+}
----------------
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`
> 
> 
In `-DLLVM_ENABLE_PER_TARGET_RUNTIME_DIR=on` mode this should be `lib/clang/$version/lib/$triple/libclang_rt.xxx.a` where there is no `-microarch` infix.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D123612/new/

https://reviews.llvm.org/D123612



More information about the cfe-commits mailing list