pragma(inline, true) / llvmAttr("alwaysinline") cross module inlining failure
kinke
noone at nowhere.com
Thu May 7 22:44:21 UTC 2020
On Thursday, 7 May 2020 at 22:14:16 UTC, Marcel wrote:
> Fixed. Unfortunately the issue of the corrupt .lib still
> persists.
Have you tried to link in the shell directly, without VisualD? If
you get that LNK error, that's from the MS linker, which of
course doesn't have the faintest idea about LLVM bitcode. So
lld-link.exe is required (and as said, the default linker in such
a scenario unless another build tool interferes).
Note that the ldc2 binaries in the official LDC packages are
built with LTO (across C++ and D, incl. druntime from D host
compiler), so it's not like LTO would be completely untested and
totally unbuggy, as the reports here in the forum might suggest
(as always, the majority for which it's working is silent).
More information about the digitalmars-d-ldc
mailing list