News for hackers. Stuff that matters.
Re:Swift 4.1 Released by ttflee on Thursday March 29, 2018 @10:00PM (#16713053)
Please forgive me for my rant:

Building Swift from source is a big pain in the *. I tried to build it on a shabby VPS running CentOS 7, which is not of my choice but because it was discounted. I had to setup 6GB of swap file to avoid OOM, and then found the intermediate files filled up the disk. Why does LLVM needs so much space to build?

Re:Swift 4.1 Released by vetinari on Friday March 30, 2018 @06:33AM (#16715024)
In my experience building LLVM (not for Swift though), it depends on your make -j switch. With -j 16 I would run out of memory quickly (32 GB RAM, 16 GB swap), with -j 1 it would be quite conservative memory-wise, but take hours to build.

So I switched to ninja (cmake -G Ninja). It can use all the cores and not run out of memory.

Re:Swift 4.1 Released by saagarjha on Thursday March 29, 2018 @10:10PM (#16713110)
I actually had to build LLVM last week, so I feel your pain. I ran it on my Mac, thankfully, but I accidentally built in debug mode and ended up a 25 GB build folder. Turning on release mode and -Os brought it down to two or three gigabytes.
Re:Swift 4.1 Released by ttflee on Thursday March 29, 2018 @10:17PM (#16713147)
After installing Xcode and stuff, on my MacBook Pro, there is usually less than 10GB free space. I have to delete and purge up and down till ~14GB for sure every time Xcode gets updated.
Re:Swift 4.1 Released by saagarjha on Thursday March 29, 2018 @10:32PM (#16713222)
If you’re looking to clean some space, I recommend checking out ~/Library/Developer/Xcode. Among other things, Xcode stores device symbols for every iOS device you’ve ever connected to your Mac here. You might be able to clean out a couple gigabytes.