[clang] [llvm] Pass TargetMachine from from Clang to `BitcodeWriter`and `ThinLTOBitcodeWriter` pass for thin and fat LTO respectively. (PR #143692)
Garvit Gupta via llvm-commits
llvm-commits at lists.llvm.org
Sun Aug 3 11:47:07 PDT 2025
quic-garvgupt wrote:
> This does works for the compilation step, for me it isn't sufficient to link the resulting object file:
>
> ```shell
> $ clang -I ./include -c ./src/use_macro.c -flto # Fixed by this PR
> $ ld.lld use_macro.o
> ld.lld: error: <inline asm>:1:10: Could not find include file 'macro.s'
> .include "macro.s"
> ^
>
>
> ld.lld: error: ld-temp.o <inline asm>:2:10: Could not find include file 'macro.s'
> .include "macro.s"
> ```
Currently the patch is only focusing on linker invocation through clang. I am hoping that someone else can pursue it from the linker side
https://github.com/llvm/llvm-project/pull/143692
More information about the llvm-commits
mailing list