pragma(inline, true) / llvmAttr("alwaysinline") cross module inlining failure
kinke
noone at nowhere.com
Thu May 7 13:45:14 UTC 2020
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?
More information about the digitalmars-d-ldc
mailing list