<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><br class=""><div><blockquote type="cite" class=""><div class="">On Sep 5, 2016, at 4:13 AM, Joel Hughes via swift-dev &lt;<a href="mailto:swift-dev@swift.org" class="">swift-dev@swift.org</a>&gt; wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class=""><div class="gmail_default" style="font-family:courier new,monospace">Hello,<br class=""><br class=""></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 class=""><br class=""></div><div class="gmail_default" style="font-family:courier new,monospace">I've previously asked in swift-users about building a static binary, on Linux, using:<br class=""><br class="">swift build -Xswiftc -static-stdlib<br class=""><br class=""></div><div class="gmail_default" style="font-family:courier new,monospace">It works for simple programs but fails on those importing Foundation.<br class=""><br class=""></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" class="">https://bugs.swift.org/browse/SR-648</a><br class=""></div><div class="gmail_default" style="font-family:courier new,monospace"><br class=""></div><div class="gmail_default" style="font-family:courier new,monospace">I'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 class=""><br class=""></div><div class="gmail_default" style="font-family:courier new,monospace">Once I can do this I'll try and add them to the build process.<br class=""><br class=""></div><div class="gmail_default" style="font-family:courier new,monospace">I'm getting there wit libFoundation but have been having more difficulty with libDispatch.<br class=""><br class=""></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 class=""></div></div></div></blockquote><div><br class=""></div>I'm not sure that we have any better docs than the source, unfortunately.</div><div><br class=""></div><div>If you have specific questions you can always try asking those in the bug or on the appropriate mailing lists.</div><div><br class=""></div><div>&nbsp;- Daniel</div><div><br class=""><blockquote type="cite" class=""><div class=""><div dir="ltr" class=""><div class="gmail_default" style="font-family:courier new,monospace"><br class=""></div><div class="gmail_default" style="font-family:courier new,monospace">Thanks<br class=""><br class=""></div><div class="gmail_default" style="font-family:courier new,monospace">Joel<br class=""></div></div>
_______________________________________________<br class="">swift-dev mailing list<br class=""><a href="mailto:swift-dev@swift.org" class="">swift-dev@swift.org</a><br class="">https://lists.swift.org/mailman/listinfo/swift-dev<br class=""></div></blockquote></div><br class=""></body></html>