Building application with LDC and -flto=thin fails in link stage
Johan Engelen
j at j.nl
Mon Mar 26 22:13:02 UTC 2018
On Monday, 26 March 2018 at 22:07:49 UTC, Nordlöw wrote:
> When I try build my application using LDC and -flto=thin it
> fails in the final linking
You must also pass `-flto=thin` during linking (a special plugin
is needed for LTO, and LDC will only pass the plugin to the
linker when `-flto=` is specified).
I couldn't see `-flto=thin` in your link command, so I suspect
that will fix it.
- Johan
More information about the Digitalmars-d-learn
mailing list