Cannot make LDC use LTO when called via DUB
Nordlöw
per.nordlow at gmail.com
Sat Sep 23 15:25:44 UTC 2017
On Saturday, 23 September 2017 at 15:19:09 UTC, Nordlöw wrote:
> I've added
>
> buildType "release" {
> buildOptions "releaseMode" "optimize" "inline"
> dflags-posix-ldc "-flto=thin" "-Xcc=-fuse-ld=gold"
> }
>
> to my dub.sdl and built (on Linux) as
>
> /usr/bin/dub -v run --compiler=ldc2 --build=release
>
> but neither the flag "-flto=thin" nor "-Xcc=-fuse-ld=gold" is
> propagated to the ldc2 call (at least no printed on stdout).
>
> What's missing?
Neither
dflags-dmd "-xxx"
dflags-posix-dmd "-xxx"
dflags-linux-dmd "-xxx"
has any effect on my build (in dub.sdl).
More information about the Digitalmars-d-learn
mailing list