pragma(inline, true) / llvmAttr("alwaysinline") cross module inlining failure
Marcel
marcelpi97 at gmail.com
Thu May 7 17:21:13 UTC 2020
On Thursday, 7 May 2020 at 13:45:14 UTC, kinke wrote:
> On Thursday, 7 May 2020 at 09:57:24 UTC, Marcel wrote:
>> I have another problem though, when using -flto (full or thin)
>> I get weird error messages when linking the library with the
>> final executable
>
> Make sure to use -flto when linking too, not just when
> compiling the lib(s). LDC defaults to the bundled lld-link.exe
> on Windows then, which does support LTO libs.
>
>> -mattr=sse,sse2
>
> Implicit for x86_64 targets.
>
>> -enable-cross-module-inlining=true
>
> Doesn't make much sense with LTO.
>
>> -linker=gold
>
> On Windows?
I'm using VisualD on Windows 10. It seems that enabling LTO makes
the linker lld-link (forget about -linker=gold) complain about
/noopttls.
More information about the digitalmars-d-ldc
mailing list