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:40:15 PDT 2017


On Saturday, 20 May 2017 at 10:22:14 UTC, Stanislav Blinov wrote:
> On Saturday, 20 May 2017 at 08:02:26 UTC, lixiaozi wrote:
>
>> so, what should i do to disable inlining of ldc2 in release 
>> build?
>
> As Stefan mentioned, a test case would be nice. But have you 
> tried annotating the offending function with pragma(inline, 
> false)?
>
> http://dlang.org/spec/pragma.html#inline

Thanks.

I've tried pragma(inline,false), it didn't help.

Maybe I'l should try more way to locate the problem.

Thanks.


More information about the Digitalmars-d-learn mailing list