I tried clang-11 + lld-11 from apt.llvm.org on Debian 10, and when I try to use lto with arm targets like armv6m-none-eabi I get an error message: "unable to pass LLVM bit-code files to linker"
I tried a clang-11 mingw build (from https://github.com/mstorsjo/llvm-mingw) and get the same error message. Compiling without the -flto flag works fine. If I compile for a x86 target, -flto works. Is there some way to get lto working with ARM Cortex-M targets? _______________________________________________ cfe-users mailing list cfe-users@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-users