Cannot make LDC use LTO when called via DUB
Nordlöw
per.nordlow at gmail.com
Sat Sep 23 15:19:09 UTC 2017
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?
More information about the Digitalmars-d-learn
mailing list