dmd out of memory compiling vibed project

Guillaume guillaume at spam.spam
Wed May 22 17:23:19 UTC 2019


On Wednesday, 22 May 2019 at 16:23:30 UTC, H. S. Teoh wrote:
> On Wed, May 22, 2019 at 12:49:56PM +0000, Guillaume via 
> Digitalmars-d wrote:
>> Hi,
>> 
>> I'm using dmd 2.086.0 and vibe.d 0.85.0 to compile a vibe.d 
>> project with ~20 views (*.dt). On my main computer, I have no 
>> problems but my laptop has only 4 gig of RAM and dmd is killed 
>> before the end of the compilation because it takes more than 4 
>> gig of RAM.
>> 
>> I've tried the new -lowmem switch (in DFLAGS in dmd.conf) but 
>> it doesn't change anything. It does work with the "singleFile" 
>> option with dub but it's really long to compile... And the 
>> "singleFile" option seems to recompile everything even if I 
>> only change one ".d" source file.
> [...]
>
> Use separate compilation. (I don't know if dub support this.)
>

You mean compiling each file to create .o and then linking them? 
dub supports this with the "singleFile" option but recompiles 
everything each time. What tool do you use to automate 
compilation and linking?

Guillaume



More information about the Digitalmars-d mailing list