dub and -lowmem: does nothing

Steven Schveighoffer schveiguy at gmail.com
Sat Mar 21 18:08:20 UTC 2020

On 3/21/20 5:34 AM, Anonymouse wrote:
> On Saturday, 21 March 2020 at 00:17:37 UTC, kinke wrote:
>> Most likely because dub doesn't actually invoke the listed command, 
>> but uses a response file to work around cmdline length limits. -lowmem 
>> in response files is ignored by DMD (needs to be parsed and set before 
>> druntime initialization, but response file parsing needs druntime + 
>> GC). It works for LDC though.
> So there is no way to do -lowmem with dub and dmd?
> I'm not having out-of-memory problems with ldc, luckily.

I found the same thing. dub says it's passing -lowmem (and at the same 
time I wanted it to print GC profile data). Does not work.

I've done exactly what you did, use -v and then copy-paste the final 
command line.

Very annoying. If there's not a bug on this yet, I'd say there needs to 
be (on DMD I would say).


More information about the Digitalmars-d-learn mailing list