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
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to