<div dir="ltr"><div>Thanks!</div>I tried the above to compile with the buildbot_osx_package preset. It kind of worked, but it failed while performing the tests.<div>(TEST 'Swift :: Driver/Dependencies/bindings-build-record.swift' FAILED)<br></div><div>So, I got a working swiftc etc but no package or toolchain or anything (at least as far as I could see).</div><div><br></div><div>However, trying out the resulting swiftc shows that it is slow, ie the buildbot_osx_package preset did not imply --no-assertions --no-swift-stdlib-assertions.</div><div><br></div><div>Since I am interesting in observing the latest improvements in the optimizer, I wonder if any of the existing presets will build the std lib without assertions, and produce an installable package (which will give me toolchain)?</div><div><br></div><div>As previously stated, my goal is simply(?) to be able to use / try out these in parallell:</div><div>1. Xcode.app</div><div>2. Xcode-beta.app</div><div>3. built-from-sources</div><div><br></div><div>/Jens</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Dec 10, 2015 at 3:31 AM, Dmitri Gribenko <span dir="ltr"><<a href="mailto:gribozavr@gmail.com" target="_blank">gribozavr@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><span class="">On Wed, Dec 9, 2015 at 5:54 PM, Jordan Rose via swift-dev <span dir="ltr"><<a href="mailto:swift-dev@swift.org" target="_blank">swift-dev@swift.org</a>></span> wrote:<br></span><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word"><span class=""><div>Looks like Mish Awadah has an answer on a later thread:</div><div><br></div></span><span class=""><div><blockquote type="cite"> ./swift/utils/build-script --preset="buildbot_osx_package" install_destdir="${SWIFT_INSTALL_DIR}" installable_package="${SWIFT_INSTALLABLE_PACKAGE}" install_toolchain_dir="${SWIFT_TOOLCHAIN_DIR}" install_symroot="${SWIFT_INSTALL_SYMROOT}" symbols_package="${SYMBOLS_PACKAGE}" darwin_toolchain_bundle_identifier="${BUNDLE_IDENTIFIER}" darwin_toolchain_display_name="${DISPLAY_NAME}" darwin_toolchain_xctoolchain_name="${TOOLCHAIN_NAME}" darwin_toolchain_version="${TOOLCHAIN_VERSION}"<br>}<br></blockquote></div></span></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't work, feel free to ask us on <a href="http://swift.org" target="_blank">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.<span class="HOEnZb"><font color="#888888"><br clear="all"><div><br></div><div>Dmitri</div><div><br></div>-- <br><div>main(i,j){for(i=2;;i++){for(j=2;j<i;j++){if(!(i%j)){j=0;break;}}if<br>(j){printf("%d\n",i);}}} /*Dmitri Gribenko <<a href="mailto:gribozavr@gmail.com" target="_blank">gribozavr@gmail.com</a>>*/</div>
</font></span></div></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature">bitCycle AB | Smedjegatan 12 | 742 32 Östhammar | Sweden<br><a href="http://www.bitcycle.com/" target="_blank">http://www.bitcycle.com/</a><br>Phone: +46-73-753 24 62<br>E-mail: <a href="mailto:jens@bitcycle.com" target="_blank">jens@bitcycle.com</a><br><br></div>
</div>