how to disable inlining of ldc2 when 'dub build --build=release'?

lixiaozi via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Mon May 22 03:04:10 PDT 2017


On Saturday, 20 May 2017 at 08:11:06 UTC, Johan Engelen wrote:
> 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

Thanks.

I've file a issue here:https://github.com/dlang/dub/issues/1135


More information about the Digitalmars-d-learn mailing list