<div dir="ltr"><div class="gmail_default" style="font-family:courier new,monospace">Hello,<br><br></div><div class="gmail_default" style="font-family:courier new,monospace">I hope that this is the right channel for this type of question?<br><br></div><div class="gmail_default" style="font-family:courier new,monospace">I&#39;ve previously asked in swift-users about building a static binary, on Linux, using:<br><br>swift build -Xswiftc -static-stdlib<br><br></div><div class="gmail_default" style="font-family:courier new,monospace">It works for simple programs but fails on those importing Foundation.<br><br></div><div class="gmail_default" style="font-family:courier new,monospace">I was pointed at this bug/feature-request and was thinking of taking it on but might not have the time/skills to complete it: <a href="https://bugs.swift.org/browse/SR-648">https://bugs.swift.org/browse/SR-648</a><br></div><div class="gmail_default" style="font-family:courier new,monospace"><br></div><div class="gmail_default" style="font-family:courier new,monospace">I&#39;ve pulled and built swift from master on the main repo and am going through the steps to compile static lib (.a) files from the relevant _corelibs_ and then adding them to my tool-chain.<br><br></div><div class="gmail_default" style="font-family:courier new,monospace">Once I can do this I&#39;ll try and add them to the build process.<br><br></div><div class="gmail_default" style="font-family:courier new,monospace">I&#39;m getting there wit libFoundation but have been having more difficulty with libDispatch.<br><br></div><div class="gmail_default" style="font-family:courier new,monospace">Are there any docs or example projects I could look at for this?<br><br></div><div class="gmail_default" style="font-family:courier new,monospace">Thanks<br><br></div><div class="gmail_default" style="font-family:courier new,monospace">Joel<br></div></div>