dmd out of memory compiling vibed project
krzaq
dlangmailinglist at krzaq.cc
Wed May 22 13:25:00 UTC 2019
On Wednesday, 22 May 2019 at 13:09:37 UTC, Suliman wrote:
> Absolutely same problem. -lowmem did not get any affect on my
> VPS (1GB ram). I was able to compile project only in singleFile
> mode.
In those situations you can go with a swapfile.
fallocate -l 4G swapfile
chmod 600 swapfile
mkswap swapfile
then, when you need the file, just
sudo swapon swapfile
and when you're done
sudo swapoff swapfile
Even on an SSD the performance will be terrible, but it should
get the job done.
More information about the Digitalmars-d
mailing list