[Issue 20562] [dmd] Memory allocation failed (ERROR: This is a compiler bug)

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Feb 5 10:59:02 UTC 2020


https://issues.dlang.org/show_bug.cgi?id=20562

--- Comment #4 from JR <zorael at gmail.com> ---
(In reply to moonlightsentinel from comment #3)
> > I see. Is there a point in retrying the bisection?
> 
> Maybe if you could exactly identify a change that increased the memory
> consumption *a lot*. Then we could try to improve that specific segement to
> use less memory. But I would expect it to be a more gradual increase
> scattered over many small changes.
> 
> > -lowmem works and I want to use it, but it doesn't work with dub, which I rely on for dependencies
> 
> Not a dub expert but you could add -lowmem using the dflags configuration in
> dub.(json|sdl) IIRC.

This was one of the topics of
https://forum.dlang.org/post/ycfikiktizuifuisxdgg@forum.dlang.org; even if
defined in dflags dub doesn't pass -lowmem to dmd. The flag is silently
ignored.

--


More information about the Digitalmars-d-bugs mailing list