[swift-users] Swift build-script Smaller Memory Footprint?

Brandon B brandonb2019 at gmail.com
Sat May 6 21:21:39 CDT 2017


I’m installing Swift 3 on FreeBSD 11. After installing the necessary dependencies, I now only need to run the build-script.

The problem is that I cannot proceed beyond:

>  Linking CXX executable bin/llvm-lto

because I consistently run out of memory on my 16GB server.

From what I’ve gathered, the problem lies in  ld  which is apparently infamous for this sort of behavior.

I know that I can run ld without debug options (which would reduce its memory footprint dramatically) but I don’t know how I would do that, given that it is called by the build-script.

What do I need to do to make the build-script use less memory?

— Brandon Bradley
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-users/attachments/20170506/eaf1feed/attachment.html>

More information about the swift-users mailing list