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

Stanislav Blinov via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sat May 20 03:22:14 PDT 2017


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


More information about the Digitalmars-d-learn mailing list