Using D's precise GC when running an app with DUB

rikki cattermole rikki at cattermole.co.nz
Thu May 23 15:05:15 UTC 2019


On 24/05/2019 3:03 AM, Per Nordlöw wrote:
> On Thursday, 23 May 2019 at 15:02:12 UTC, rikki cattermole wrote:
>>> And if I want to set this in a dub.sdl?
>>
>> No can do. There is meant to be a way to set it in D however.
>> But I have heard mixed results (not that I've tried it).
> 
> Should be as easy as
> 
>      dflags "--DRT-gcopt=gc:precise"
> 
> right?

That would be passed to dmd, not to the build executable upon running.


More information about the Digitalmars-d-learn mailing list