On Saturday, 20 May 2017 at 08:02:26 UTC, lixiaozi wrote:

Now, I try to disable inlining in "dub.json" like
==
"dflags":[
                "-disable-inlining"
        ],
==
 but it doesn't work, because then dub calls ldc2 like this:
'ldc2 -disable-inlining -release -enable-inlining -Hkeep-all-bodies -O3 -w -oq' and inlining in ldc2 will still be enabled.

You could file a bug/feature request with Dub: I think it should add user flags at the end of the cmdline. (flags can override earlier flags, so then the user can override any flag Dub is already passing to LDC).

-Johan

Reply via email to