how to disable inlining of ldc2 when 'dub build --build=release'?
Johan Engelen via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Sat May 20 01:11:06 PDT 2017
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
More information about the Digitalmars-d-learn
mailing list