Building application with LDC and -flto=thin fails in link stage

Jacob Carlborg doob at me.com
Thu Mar 29 08:44:21 UTC 2018


On Wednesday, 28 March 2018 at 20:09:24 UTC, Johan Engelen wrote:
> On Wednesday, 28 March 2018 at 17:03:07 UTC, Seb wrote:
>> 
>> dub supports dflags and lflags in the config file. lflags are 
>> the linker commands.
>
> Please read the thread.
>
> `lflags` is for passing flags to the _linker_ (i.e. those flags 
> are prefixed with -L when passed to the _compiler_)
>
> Here, what's needed is passing flags to the _compiler_ when it 
> is invoked to perform the link step in the build.

Please read the reply :), although it could be a bit more clear.

`dflags` is used to pass arbitrary flags to the compiler. See the 
bottom of the table at [1].

[1] https://code.dlang.org/package-format?lang=sdl#build-settings

--
/Jacob Carlborg


More information about the Digitalmars-d-learn mailing list