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-ltoWhich 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:ld --strip-debugHow would I go about enabling that option, given that I'm never actually running the command?
How to Run ld in Script with A Smaller Memory Footprint?
freebsd;compiling;cmake;ld;swift