[clang] [llvm] Pass TargetMachine from from Clang to `BitcodeWriter`and `ThinLTOBitcodeWriter` pass for thin and fat LTO respectively. (PR #143692)

Thomas Weißschuh via cfe-commits cfe-commits at lists.llvm.org
Tue Jun 24 08:57:40 PDT 2025


t-8ch wrote:

This does works for the compilation step, for me it isn't sufficient to link the resulting object file:

```sh
$ 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"
```

https://github.com/llvm/llvm-project/pull/143692


More information about the cfe-commits mailing list