pragma(inline, true) / llvmAttr("alwaysinline") cross module inlining failure

Marcel marcelpi97 at gmail.com
Thu May 7 23:28:50 UTC 2020


On Thursday, 7 May 2020 at 23:05:30 UTC, kinke wrote:
> On Thursday, 7 May 2020 at 22:14:16 UTC, Marcel wrote:
>> Fixed. Unfortunately the issue of the corrupt .lib still 
>> persists.
>
> I've just tried another potential source of error, which occurs 
> when generating (not linking) the static LTO library. That 
> requires generating the static lib with LDC (`-lib`), as it 
> uses LLVM's librarian/archiver with bitcode support. When using 
> MS lib.exe, I get that LNK1107 error you've mentioned (with an 
> object file prefix in the error msg though, unlike your 
> example). So VisualD might use the MS librarian unconditionally 
> in your case...

That's a shame, I'll try using dub later.


More information about the digitalmars-d-ldc mailing list