I'm trying to build Swift 3 on FreeBSD. The last thing I need to do is run the build-script.
My problem is that at some point the script runs:
Linking CXX executable bin/llvm-lto
Which consistently kills my system by using all of its 16GB memory (1GB real + 15GB swap)
After doing some research, it seems that ld consumes ludicrous amounts of memory when in (default) debug mode.
According to the man page it can be disabled by using:
How would I go about enabling that option, given that I'm never actually running the command?