<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Wed, Dec 9, 2015 at 5:54 PM, Jordan Rose via swift-dev <span dir="ltr">&lt;<a href="mailto:swift-dev@swift.org" target="_blank">swift-dev@swift.org</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word"><div>Looks like Mish Awadah has an answer on a later thread:</div><div><br></div><div><blockquote type="cite">   ./swift/utils/build-script --preset=&quot;buildbot_osx_package&quot; install_destdir=&quot;${SWIFT_INSTALL_DIR}&quot; installable_package=&quot;${SWIFT_INSTALLABLE_PACKAGE}&quot; install_toolchain_dir=&quot;${SWIFT_TOOLCHAIN_DIR}&quot; install_symroot=&quot;${SWIFT_INSTALL_SYMROOT}&quot; symbols_package=&quot;${SYMBOLS_PACKAGE}&quot; darwin_toolchain_bundle_identifier=&quot;${BUNDLE_IDENTIFIER}&quot; darwin_toolchain_display_name=&quot;${DISPLAY_NAME}&quot; darwin_toolchain_xctoolchain_name=&quot;${TOOLCHAIN_NAME}&quot; darwin_toolchain_version=&quot;${TOOLCHAIN_VERSION}&quot;<br>}<br></blockquote></div></div></blockquote></div><div class="gmail_extra">Thanks, Jordan!</div><div class="gmail_extra"><br></div>Just wanted to emphasize that the package presets is the only way you should be building Swift for any production use (either on Linux or OS X).</div><div class="gmail_extra"><br></div><div class="gmail_extra">If you are trying to port Swift to some platform where existing presets don&#39;t work, feel free to ask us on <a href="http://swift.org">swift.org</a> mailing lists.  If you want to make a preset for production use from scratch, I strongly recommend reading existing packaging presets and understanding what each flag does (not just the description).<br><br>What happened in your build is that the standard library was built with assertions.  This is the right thing for development, but wrong for production.  Since production build process will be complex no matter what, we decided to optimize build-script interface for local development.<br clear="all"><div><br></div><div>Dmitri</div><div><br></div>-- <br><div class="gmail_signature">main(i,j){for(i=2;;i++){for(j=2;j&lt;i;j++){if(!(i%j)){j=0;break;}}if<br>(j){printf(&quot;%d\n&quot;,i);}}} /*Dmitri Gribenko &lt;<a href="mailto:gribozavr@gmail.com" target="_blank">gribozavr@gmail.com</a>&gt;*/</div>
</div></div>