<div dir="ltr">I'm also trying to figure out more about the build process. I don't even understand in what context the buld_osx_package function should be (should it be just in it's own file or in some context where eg SRC_DIR and BUILD_NUMBER are defined)?<div><br></div><div>What I want to do most of the times is just to try out the current master, so I do:<div>swift/utils/update-checkout -a<br></div><div><br></div><div>And then I want to build something like the dev snapshots, but I don't want to wait for too long, so I want to build only for os x (skip ios, tvos, watchos) and no tests, and as I want to see any improvements in the optimizer I want --no-assertions, --no-swift-stdlib-assertions.</div><div><br></div><div>I've not managed to make enough sense out of looking at the code and comments of the build tools to feel confident in writing my own build-preset or anything like that.</div><div><br></div><div>In order to get something that worked, I looked at what build_osx_package preset expanded into, and then modified those flags according to the above and passed that to build-script.</div><div><br></div><div>I suppose a lot of people are able to figure out a more sane/proper way to do this, but I can't without more documentation / instructions ...</div><div><br></div><div><br></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Dec 15, 2015 at 6:45 AM, Travis Tilley via swift-dev <span dir="ltr"><<a href="mailto:swift-dev@swift.org" target="_blank">swift-dev@swift.org</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_default" style="font-family:verdana,sans-serif">Wait... are you sure that's the appropriate configuration? Shouldn't the xctoolchain destination be in /Library/Developer/Toolchains/ rather than the xcode directory proper? Or is the actual end destination handled entirely by `toolchain-installer'?</div><div class="gmail_default" style="font-family:verdana,sans-serif"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif"><br></div><div class="gmail_default"><font face="verdana, sans-serif">Only somewhat related: SRC_DIR isn't defined, so I have my version looking like this so far (and will add toolchain-installer afterwards after verifying the install and figuring out how things work there).</font></div><div class="gmail_default"><font face="verdana, sans-serif"><br></font></div><div class="gmail_default"><span style="color:rgb(51,51,51);font-weight:bold;font-family:Hack;font-size:12px;white-space:pre-wrap"><br>function</span><span style="color:rgb(51,51,51);font-family:Hack;font-size:12px;white-space:pre-wrap;background-color:rgb(248,248,248)"> </span><span style="color:rgb(51,51,51);font-family:Hack;font-size:12px;white-space:pre-wrap"><span style="color:rgb(153,0,0);font-weight:bold">build_osx_package</span></span><span style="color:rgb(51,51,51);font-family:Hack;font-size:12px;white-space:pre-wrap;background-color:rgb(248,248,248)">() {
YEAR=$(date +</span><span style="color:rgb(221,17,68);font-family:Hack;font-size:12px;white-space:pre-wrap">"%Y"</span><span style="color:rgb(51,51,51);font-family:Hack;font-size:12px;white-space:pre-wrap;background-color:rgb(248,248,248)">)
MONTH=$(date +</span><span style="color:rgb(221,17,68);font-family:Hack;font-size:12px;white-space:pre-wrap">"%m"</span><span style="color:rgb(51,51,51);font-family:Hack;font-size:12px;white-space:pre-wrap;background-color:rgb(248,248,248)">)
DAY=$(date +</span><span style="color:rgb(221,17,68);font-family:Hack;font-size:12px;white-space:pre-wrap">"%d"</span><span style="color:rgb(51,51,51);font-family:Hack;font-size:12px;white-space:pre-wrap;background-color:rgb(248,248,248)">)
TOOLCHAIN_VERSION=</span><span style="color:rgb(221,17,68);font-family:Hack;font-size:12px;white-space:pre-wrap">"swift-2.2-SNAPSHOT-<span style="color:rgb(0,128,128)">${YEAR}</span>-<span style="color:rgb(0,128,128)">${MONTH}</span>-<span style="color:rgb(0,128,128)">${DAY}</span>-a"</span><span style="color:rgb(51,51,51);font-family:Hack;font-size:12px;white-space:pre-wrap;background-color:rgb(248,248,248)">
ARCHIVE_DIR=</span><span style="color:rgb(221,17,68);font-family:Hack;font-size:12px;white-space:pre-wrap">"<span style="color:rgb(0,128,128)">${TOOLCHAIN_VERSION}</span>-<span style="color:rgb(0,128,128)">${BUILD_NUMBER}</span>"</span><span style="color:rgb(51,51,51);font-family:Hack;font-size:12px;white-space:pre-wrap;background-color:rgb(248,248,248)">
ARCHIVE=</span><span style="color:rgb(221,17,68);font-family:Hack;font-size:12px;white-space:pre-wrap">"<span style="color:rgb(0,128,128)">${TOOLCHAIN_VERSION}</span>-osx.tar.gz"</span><span style="color:rgb(51,51,51);font-family:Hack;font-size:12px;white-space:pre-wrap;background-color:rgb(248,248,248)">
SYM_ARCHIVE=</span><span style="color:rgb(221,17,68);font-family:Hack;font-size:12px;white-space:pre-wrap">"<span style="color:rgb(0,128,128)">${TOOLCHAIN_VERSION}</span>-osx-symbols.tar.gz"</span><span style="color:rgb(51,51,51);font-family:Hack;font-size:12px;white-space:pre-wrap;background-color:rgb(248,248,248)">
BUNDLE_IDENTIFIER=</span><span style="color:rgb(221,17,68);font-family:Hack;font-size:12px;white-space:pre-wrap">"org.swift.<span style="color:rgb(0,128,128)">${YEAR}</span><span style="color:rgb(0,128,128)">${MONTH}</span><span style="color:rgb(0,128,128)">${DAY}</span>"</span><span style="color:rgb(51,51,51);font-family:Hack;font-size:12px;white-space:pre-wrap;background-color:rgb(248,248,248)">
DISPLAY_NAME=</span><span style="color:rgb(221,17,68);font-family:Hack;font-size:12px;white-space:pre-wrap">"Swift 2.2 Development Snapshot"</span><span style="color:rgb(51,51,51);font-family:Hack;font-size:12px;white-space:pre-wrap;background-color:rgb(248,248,248)">
TOOLCHAIN_NAME=</span><span style="color:rgb(221,17,68);font-family:Hack;font-size:12px;white-space:pre-wrap">"<span style="color:rgb(0,128,128)">${TOOLCHAIN_VERSION}</span>"</span><span style="color:rgb(51,51,51);font-family:Hack;font-size:12px;white-space:pre-wrap;background-color:rgb(248,248,248)">
SRC_DIR=</span><span style="color:rgb(221,17,68);font-family:Hack;font-size:12px;white-space:pre-wrap">"<span style="color:rgb(0,128,128)">$(pwd)</span>"</span><span style="color:rgb(51,51,51);font-family:Hack;font-size:12px;white-space:pre-wrap;background-color:rgb(248,248,248)">
SWIFT_SOURCE_ROOT=</span><span style="color:rgb(221,17,68);font-family:Hack;font-size:12px;white-space:pre-wrap">"<span style="color:rgb(0,128,128)">${SRC_DIR}</span>"</span><span style="color:rgb(51,51,51);font-family:Hack;font-size:12px;white-space:pre-wrap;background-color:rgb(248,248,248)">
SWIFT_BUILD_ROOT=</span><span style="color:rgb(221,17,68);font-family:Hack;font-size:12px;white-space:pre-wrap">"<span style="color:rgb(0,128,128)">${SRC_DIR}</span>/build"</span><span style="color:rgb(51,51,51);font-family:Hack;font-size:12px;white-space:pre-wrap;background-color:rgb(248,248,248)">
SWIFT_INSTALLABLE_PACKAGE=</span><span style="color:rgb(221,17,68);font-family:Hack;font-size:12px;white-space:pre-wrap">"<span style="color:rgb(0,128,128)">${SRC_DIR}</span>/<span style="color:rgb(0,128,128)">${ARCHIVE}</span>"</span><span style="color:rgb(51,51,51);font-family:Hack;font-size:12px;white-space:pre-wrap;background-color:rgb(248,248,248)">
SWIFT_INSTALL_DIR=</span><span style="color:rgb(221,17,68);font-family:Hack;font-size:12px;white-space:pre-wrap">"<span style="color:rgb(0,128,128)">${SRC_DIR}</span>/swift-nightly-install"</span><span style="color:rgb(51,51,51);font-family:Hack;font-size:12px;white-space:pre-wrap;background-color:rgb(248,248,248)">
SWIFT_INSTALL_SYMROOT=</span><span style="color:rgb(221,17,68);font-family:Hack;font-size:12px;white-space:pre-wrap">"<span style="color:rgb(0,128,128)">${SRC_DIR}</span>/swift-nightly-symroot"</span><span style="color:rgb(51,51,51);font-family:Hack;font-size:12px;white-space:pre-wrap;background-color:rgb(248,248,248)">
SWIFT_TOOLCHAIN_DIR=</span><span style="color:rgb(221,17,68);font-family:Hack;font-size:12px;white-space:pre-wrap">"/Applications/Xcode.app/Contents/Developer/Toolchains/<span style="color:rgb(0,128,128)">${TOOLCHAIN_NAME}</span>.xctoolchain"</span><span style="color:rgb(51,51,51);font-family:Hack;font-size:12px;white-space:pre-wrap;background-color:rgb(248,248,248)">
SYMBOLS_PACKAGE=</span><span style="color:rgb(221,17,68);font-family:Hack;font-size:12px;white-space:pre-wrap">"<span style="color:rgb(0,128,128)">${SRC_DIR}</span>/<span style="color:rgb(0,128,128)">${SYM_ARCHIVE}</span>"</span><span style="color:rgb(51,51,51);font-family:Hack;font-size:12px;white-space:pre-wrap;background-color:rgb(248,248,248)">
./swift/utils/build-script --preset=</span><span style="color:rgb(221,17,68);font-family:Hack;font-size:12px;white-space:pre-wrap">"buildbot_osx_package"</span><span style="color:rgb(51,51,51);font-family:Hack;font-size:12px;white-space:pre-wrap;background-color:rgb(248,248,248)"> \
install_destdir=</span><span style="color:rgb(221,17,68);font-family:Hack;font-size:12px;white-space:pre-wrap">"<span style="color:rgb(0,128,128)">${SWIFT_INSTALL_DIR}</span>"</span><span style="color:rgb(51,51,51);font-family:Hack;font-size:12px;white-space:pre-wrap;background-color:rgb(248,248,248)"> \
installable_package=</span><span style="color:rgb(221,17,68);font-family:Hack;font-size:12px;white-space:pre-wrap">"<span style="color:rgb(0,128,128)">${SWIFT_INSTALLABLE_PACKAGE}</span>"</span><span style="color:rgb(51,51,51);font-family:Hack;font-size:12px;white-space:pre-wrap;background-color:rgb(248,248,248)"> \
install_toolchain_dir=</span><span style="color:rgb(221,17,68);font-family:Hack;font-size:12px;white-space:pre-wrap">"<span style="color:rgb(0,128,128)">${SWIFT_TOOLCHAIN_DIR}</span>"</span><span style="color:rgb(51,51,51);font-family:Hack;font-size:12px;white-space:pre-wrap;background-color:rgb(248,248,248)"> \
install_symroot=</span><span style="color:rgb(221,17,68);font-family:Hack;font-size:12px;white-space:pre-wrap">"<span style="color:rgb(0,128,128)">${SWIFT_INSTALL_SYMROOT}</span>"</span><span style="color:rgb(51,51,51);font-family:Hack;font-size:12px;white-space:pre-wrap;background-color:rgb(248,248,248)"> \
symbols_package=</span><span style="color:rgb(221,17,68);font-family:Hack;font-size:12px;white-space:pre-wrap">"<span style="color:rgb(0,128,128)">${SYMBOLS_PACKAGE}</span>"</span><span style="color:rgb(51,51,51);font-family:Hack;font-size:12px;white-space:pre-wrap;background-color:rgb(248,248,248)"> \
darwin_toolchain_bundle_identifier=</span><span style="color:rgb(221,17,68);font-family:Hack;font-size:12px;white-space:pre-wrap">"<span style="color:rgb(0,128,128)">${BUNDLE_IDENTIFIER}</span>"</span><span style="color:rgb(51,51,51);font-family:Hack;font-size:12px;white-space:pre-wrap;background-color:rgb(248,248,248)"> \
darwin_toolchain_display_name=</span><span style="color:rgb(221,17,68);font-family:Hack;font-size:12px;white-space:pre-wrap">"<span style="color:rgb(0,128,128)">${DISPLAY_NAME}</span>"</span><span style="color:rgb(51,51,51);font-family:Hack;font-size:12px;white-space:pre-wrap;background-color:rgb(248,248,248)"> \
darwin_toolchain_xctoolchain_name=</span><span style="color:rgb(221,17,68);font-family:Hack;font-size:12px;white-space:pre-wrap">"<span style="color:rgb(0,128,128)">${TOOLCHAIN_NAME}</span>"</span><span style="color:rgb(51,51,51);font-family:Hack;font-size:12px;white-space:pre-wrap;background-color:rgb(248,248,248)"> \
darwin_toolchain_version=</span><span style="color:rgb(221,17,68);font-family:Hack;font-size:12px;white-space:pre-wrap">"<span style="color:rgb(0,128,128)">${TOOLCHAIN_VERSION}</span>"</span><span style="color:rgb(51,51,51);font-family:Hack;font-size:12px;white-space:pre-wrap;background-color:rgb(248,248,248)">
}
build_osx_package
</span></div><div><span style="color:rgb(51,51,51);font-family:Hack;font-size:12px;white-space:pre-wrap;background-color:rgb(248,248,248)"><br></span></div><div class="gmail_default"><font face="verdana, sans-serif"><br></font></div><div class="gmail_default" style="font-family:verdana,sans-serif"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif">-Travis Tilley</div><div class="gmail_default" style="font-family:verdana,sans-serif"><br></div><div class="gmail_extra"><br><div class="gmail_quote"><span class="">On Mon, Dec 14, 2015 at 11:42 PM, Mish Awadah <span dir="ltr"><<a href="mailto:mawadah@apple.com" target="_blank">mawadah@apple.com</a>></span> wrote:<br></span><div><div class="h5"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div style="word-wrap:break-word">I’m sorry for the experience Travis, but this is certainly one of our pain points. There’s a lot at play and we haven’t finished setting up our public CI either. Here’s what I do locally to build a toolchain on OS X:<div><br></div><div><div style="margin:0px;font-size:12px;line-height:normal;font-family:Menlo;color:rgb(95,135,135);background-color:rgb(228,228,228)"><span style="color:rgb(135,135,0)"><b>function</b></span> <span style="color:rgb(1,135,215)">build_osx_package</span><span style="color:rgb(0,175,135)">()</span> <span style="color:rgb(0,175,135)">{</span> </div><p style="margin:0px;font-size:12px;line-height:normal;font-family:Menlo;color:rgb(95,135,135);min-height:14px;background-color:rgb(255,254,215)"> <br></p><div style="margin:0px;font-size:12px;line-height:normal;font-family:Menlo;color:rgb(95,135,135);background-color:rgb(255,254,215)"> <span style="color:rgb(1,135,215)">YEAR</span>=$<span style="color:rgb(175,135,0)">(</span><span style="color:rgb(95,95,215)"><b>date</b></span> +<span style="color:rgb(0,175,135)">"%Y"</span><span style="color:rgb(175,135,0)">)</span> </div><div style="margin:0px;font-size:12px;line-height:normal;font-family:Menlo;color:rgb(95,135,135);background-color:rgb(255,254,215)"> <span style="color:rgb(1,135,215)">MONTH</span>=$<span style="color:rgb(175,135,0)">(</span><span style="color:rgb(95,95,215)"><b>date</b></span> +<span style="color:rgb(0,175,135)">"%m"</span><span style="color:rgb(175,135,0)">)</span> </div><div style="margin:0px;font-size:12px;line-height:normal;font-family:Menlo;color:rgb(95,135,135);background-color:rgb(255,254,215)"> <span style="color:rgb(1,135,215)">DAY</span>=$<span style="color:rgb(175,135,0)">(</span><span style="color:rgb(95,95,215)"><b>date</b></span> +<span style="color:rgb(0,175,135)">"%d"</span><span style="color:rgb(175,135,0)">)</span> </div><div style="margin:0px;font-size:12px;line-height:normal;font-family:Menlo;color:rgb(95,135,135);background-color:rgb(255,254,215)"> <span style="color:rgb(1,135,215)">TOOLCHAIN_VERSION</span>=<span style="color:rgb(0,175,135)">"swift-2.2-SNAPSHOT-${YEAR}-${MONTH}-${DAY}-a"</span> </div><div style="margin:0px;font-size:12px;line-height:normal;font-family:Menlo;color:rgb(95,135,135);background-color:rgb(255,254,215)"> <span style="color:rgb(1,135,215)">ARCHIVE_DIR</span>=<span style="color:rgb(0,175,135)">"${TOOLCHAIN_VERSION}-${BUILD_NUMBER}"</span> </div><div style="margin:0px;font-size:12px;line-height:normal;font-family:Menlo;color:rgb(95,135,135);background-color:rgb(255,254,215)"> <span style="color:rgb(1,135,215)">ARCHIVE</span>=<span style="color:rgb(0,175,135)">"${TOOLCHAIN_VERSION}-osx.tar.gz"</span> </div><div style="margin:0px;font-size:12px;line-height:normal;font-family:Menlo;color:rgb(95,135,135);background-color:rgb(255,254,215)"> <span style="color:rgb(1,135,215)">SYM_ARCHIVE</span>=<span style="color:rgb(0,175,135)">"${TOOLCHAIN_VERSION}-osx-symbols.tar.gz"</span> </div><div style="margin:0px;font-size:12px;line-height:normal;font-family:Menlo;color:rgb(95,135,135);background-color:rgb(255,254,215)"> <span style="color:rgb(1,135,215)">BUNDLE_IDENTIFIER</span>=<span style="color:rgb(0,175,135)">"org.swift.${YEAR}${MONTH}${DAY}"</span> </div><div style="margin:0px;font-size:12px;line-height:normal;font-family:Menlo;color:rgb(95,135,135);background-color:rgb(255,254,215)"> <span style="color:rgb(1,135,215)">DISPLAY_NAME</span>=<span style="color:rgb(0,175,135)">"Swift 2.2 Development Snapshot"</span> </div><div style="margin:0px;font-size:12px;line-height:normal;font-family:Menlo;color:rgb(95,135,135);background-color:rgb(255,254,215)"> <span style="color:rgb(1,135,215)">TOOLCHAIN_NAME</span>=<span style="color:rgb(0,175,135)">"${TOOLCHAIN_VERSION}"</span> </div><p style="margin:0px;font-size:12px;line-height:normal;font-family:Menlo;color:rgb(95,135,135);min-height:14px;background-color:rgb(255,254,215)"> <br></p><div style="margin:0px;font-size:12px;line-height:normal;font-family:Menlo;color:rgb(95,135,135);background-color:rgb(255,254,215)"> <span style="color:rgb(1,135,215)">SWIFT_SOURCE_ROOT</span>=<span style="color:rgb(0,175,135)">"${SRC_DIR}"</span> </div><div style="margin:0px;font-size:12px;line-height:normal;font-family:Menlo;color:rgb(95,135,135);background-color:rgb(255,254,215)"> <span style="color:rgb(1,135,215)">SWIFT_BUILD_ROOT</span>=<span style="color:rgb(0,175,135)">"${SRC_DIR}/build"</span> </div><div style="margin:0px;font-size:12px;line-height:normal;font-family:Menlo;color:rgb(95,135,135);background-color:rgb(255,254,215)"> <span style="color:rgb(1,135,215)">SWIFT_INSTALLABLE_PACKAGE</span>=<span style="color:rgb(0,175,135)">"${SRC_DIR}/${ARCHIVE}"</span> </div><div style="margin:0px;font-size:12px;line-height:normal;font-family:Menlo;color:rgb(95,135,135);background-color:rgb(255,254,215)"> <span style="color:rgb(1,135,215)">SWIFT_INSTALL_DIR</span>=<span style="color:rgb(0,175,135)">"${SRC_DIR}/swift-nightly-install"</span> </div><div style="margin:0px;font-size:12px;line-height:normal;font-family:Menlo;color:rgb(95,135,135);background-color:rgb(255,254,215)"> <span style="color:rgb(1,135,215)">SWIFT_INSTALL_SYMROOT</span>=<span style="color:rgb(0,175,135)">"${SRC_DIR}/swift-nightly-symroot"</span> </div><div style="margin:0px;font-size:12px;line-height:normal;font-family:Menlo;color:rgb(0,175,135);background-color:rgb(255,254,215)"><span style="color:rgb(95,135,135)"> </span><span style="color:rgb(1,135,215)">SWIFT_TOOLCHAIN_DIR</span><span style="color:rgb(95,135,135)">=</span>"/Applications/Xcode.app/Contents/Developer/Toolchains/${TOOLCHAIN_NAME}.xctoolchain"<span style="color:rgb(95,135,135)"> </span></div><div style="margin:0px;font-size:12px;line-height:normal;font-family:Menlo;color:rgb(95,135,135);background-color:rgb(255,254,215)"> <span style="color:rgb(1,135,215)">SYMBOLS_PACKAGE</span>=<span style="color:rgb(0,175,135)">"${SRC_DIR}/${SYM_ARCHIVE}"</span> </div><p style="margin:0px;font-size:12px;line-height:normal;font-family:Menlo;color:rgb(95,135,135);min-height:14px;background-color:rgb(255,254,215)"> <br></p><div style="margin:0px;font-size:12px;line-height:normal;font-family:Menlo;color:rgb(0,175,135);background-color:rgb(255,254,215)"><span style="color:rgb(95,135,135)"> ./swift/utils/build-script --preset=</span>"buildbot_osx_package"<span style="color:rgb(95,135,135)"> </span><span style="color:rgb(1,135,215)">install_destdir</span><span style="color:rgb(95,135,135)">=</span>"${SWIFT_INSTALL_DIR}"<span style="color:rgb(95,135,135)"> </span><span style="color:rgb(1,135,215)">installable_package</span><span style="color:rgb(95,135,135)">=</span>"${SWIFT_INSTALLABLE_PACKAGE}"<span style="color:rgb(95,135,135)"> </span><span style="color:rgb(1,135,215)">install_toolchain_dir</span><span style="color:rgb(95,135,135)">=</span>"${SWIF<span style="color:rgb(95,135,135)">\</span></div><div style="margin:0px;font-size:12px;line-height:normal;font-family:Menlo;color:rgb(1,135,215);background-color:rgb(255,254,215)"><span style="color:rgb(0,175,135)">T_TOOLCHAIN_DIR}"</span><span style="color:rgb(95,135,135)"> </span>install_symroot<span style="color:rgb(95,135,135)">=</span><span style="color:rgb(0,175,135)">"${SWIFT_INSTALL_SYMROOT}"</span><span style="color:rgb(95,135,135)"> </span>symbols_package<span style="color:rgb(95,135,135)">=</span><span style="color:rgb(0,175,135)">"${SYMBOLS_PACKAGE}"</span><span style="color:rgb(95,135,135)"> </span>darwin_toolchain_bundle_identifier<span style="color:rgb(95,135,135)">=</span><span style="color:rgb(0,175,135)">"${BUNDLE_IDENTIFIER}"</span><span style="color:rgb(95,135,135)"> </span>darwin_toolchain_display_n<span style="color:rgb(95,135,135)">\</span></div><div style="margin:0px;font-size:12px;line-height:normal;font-family:Menlo;color:rgb(95,135,135);background-color:rgb(255,254,215)"><span style="color:rgb(1,135,215)">ame</span>=<span style="color:rgb(0,175,135)">"${DISPLAY_NAME}"</span> <span style="color:rgb(1,135,215)">darwin_toolchain_xctoolchain_name</span>=<span style="color:rgb(0,175,135)">"${TOOLCHAIN_NAME}"</span> <span style="color:rgb(1,135,215)">darwin_toolchain_version</span>=<span style="color:rgb(0,175,135)">"${TOOLCHAIN_VERSION}"</span> </div><div style="margin:0px;font-size:12px;line-height:normal;font-family:Menlo;color:rgb(0,175,135);background-color:rgb(255,254,215)">}</div><div><br></div><div>It should work. If not, please file a bug with your output and configuration and let us know about it. </div><span><font color="#888888"><div><br></div><div>- mish</div></font></span><div><div><div><br><div><blockquote type="cite"><div>On Dec 14, 2015, at 8:32 PM, Dmitri Gribenko <<a href="mailto:gribozavr@gmail.com" target="_blank">gribozavr@gmail.com</a>> wrote:</div><br><div><div dir="ltr" style="font-family:Helvetica;font-size:14px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">+Mishal Awadah, Mishal Shah<br><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Dec 14, 2015 at 8:04 PM, Travis Tilley via swift-dev<span> </span><span dir="ltr"><<a href="mailto:swift-dev@swift.org" target="_blank">swift-dev@swift.org</a>></span><span> </span>wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><div><div style="font-family:verdana,sans-serif;font-size:12.8px">Is there any documentation somewhere on what the exact commands are that the buildbot CI performs and how the packages on <a href="http://swift.org/" target="_blank">swift.org</a> are created?</div><div style="font-family:verdana,sans-serif;font-size:12.8px"><br></div><div style="font-family:verdana,sans-serif;font-size:12.8px">I've noticed that:</div><div style="font-family:verdana,sans-serif;font-size:12.8px"><br></div><div style="font-family:verdana,sans-serif;font-size:12.8px">1) LLDB doesn't compile on either OSX or ubuntu 15 via the normal script for various reasons (codesign on OSX, no idea on ubuntu) in the default configuration. This seems highly counter-intuitive.</div><div style="font-family:verdana,sans-serif;font-size:12.8px"><br></div><div style="font-family:verdana,sans-serif;font-size:12.8px">2) The buildbot presets don't have sane defaults and I can't find any documentation on what "sane" might mean for those builds.</div><div style="font-family:verdana,sans-serif;font-size:12.8px"><br></div><div style="font-family:verdana,sans-serif;font-size:12.8px">3) I still can't build the full suite using the following command (which, again, may or may not be sane):</div><div style="font-family:verdana,sans-serif;font-size:12.8px"><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><span style="font-size:12.8px"><font face="monospace, monospace">nice ./swift/utils/build-script \<br></font></span><span style="font-size:12.8px"><font face="monospace, monospace"> <span> </span>--preset=buildbot_osx_package \<br></font></span><span style="font-size:12.8px"><font face="monospace, monospace"> <span> </span>installable_package=/tmp/swift.tar.gz \<br></font></span><span style="font-size:12.8px"><font face="monospace, monospace"> <span> </span>install_destdir=/Library/Developer/Toolchains/swift-2.2-SNAPSHOT-2015-12-14/ \<br></font></span><span style="font-size:12.8px"><font face="monospace, monospace"> <span> </span>install_toolchain_dir=/Library/Developer/Toolchains/swift-2.2-SNAPSHOT-2015-12-14.xctoolchain \<br></font></span><span style="font-size:12.8px"><font face="monospace, monospace"> <span> </span>install_symroot=/Library/Developer/Toolchains/swift-2.2-SNAPSHOT-2015-12-14/ \<br></font></span><span style="font-size:12.8px"><font face="monospace, monospace"> <span> </span>symbols_package=/tmp/swift-symbols.tar.gz \<br></font></span><span style="font-size:12.8px"><font face="monospace, monospace"> <span> </span>darwin_toolchain_bundle_identifier=org.swift.20151214 \<br></font></span><span style="font-size:12.8px"><font face="monospace, monospace"> <span> </span>darwin_toolchain_display_name=20151214 \<br></font></span><span style="font-size:12.8px"><font face="monospace, monospace"> <span> </span>darwin_toolchain_xctoolchain_name=swift darwin_toolchain_version=swift</font></span></blockquote><div><font face="verdana, sans-serif"><span style="font-size:12.8px"><br></span></font></div><div style="font-family:arial,sans-serif;font-size:12.8px"><div><font face="verdana, sans-serif">All that I actually -want- to do is start xcode using a freshly built swift toolchain. That is it. I don't even need any of the SDKs other than OSX built. But the build directory install structure doesn't have anything like what `launch-with-toolchain` appears to expect...</font></div></div><div style="font-family:arial,sans-serif;font-size:12.8px"><font face="verdana, sans-serif"><br></font></div><div style="font-family:arial,sans-serif;font-size:12.8px"><font face="verdana, sans-serif">Not sure where i'm going wrong. Please feel free to tell me to RTFM if there is a FM to read.</font></div><div style="font-family:arial,sans-serif;font-size:12.8px"><font face="verdana, sans-serif"><br></font></div><div style="font-family:arial,sans-serif;font-size:12.8px"><font face="verdana, sans-serif"><br></font></div><div style="font-family:arial,sans-serif;font-size:12.8px"><font face="verdana, sans-serif">-Travis Tilley</font></div><div style="font-family:arial,sans-serif;font-size:12.8px"><font face="verdana, sans-serif"><br></font></div></div></div><img src="https://u2002410.ct.sendgrid.net/wf/open?upn=HvbB2rNqe6WERAH1f5iSygoap13wP4MPscYBJZE6r41Dy-2F82U-2FpUMV9g-2Bx6EPlEG-2FnmmPHVo-2B9iXuj59yoSbAy1qmC-2BMkE4Z6gUphQb2R0I94UjUHyt5iqnsIvgpKfAqcJwzC6hepLZs1YfJeMbDMAmy2Q3RtKVz6lXLfdhHFeDDWamRHT8THWXhxGE9kNprJ9sucRrCs2VemosOzDVa1Q5nylV6GuddCo7Hx7R97hQ-3D" alt="" width="1" height="1" border="0" style="min-height:1px!important;width:1px!important;border-width:0px!important;margin:0px!important;padding:0px!important;display:none!important"><span> </span><br>_______________________________________________<br>swift-dev mailing list<br><a href="mailto:swift-dev@swift.org" target="_blank">swift-dev@swift.org</a><br><a href="https://lists.swift.org/mailman/listinfo/swift-dev" rel="noreferrer" target="_blank">https://lists.swift.org/mailman/listinfo/swift-dev</a><br><br></blockquote></div><br><br clear="all"><div><br></div>--<span> </span><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></div></div></div></blockquote></div></div></div></div></div></div></blockquote></div></div></div>
</div></div>
<img src="https://u2002410.ct.sendgrid.net/wf/open?upn=XvhdqKbdF5CD2eicBgtDxwV9X23JIVEhXYPY5ptMu9HHK8gc4Dk92z6mTrrL4t8-2BZZOv2f8A2K2cFlyAigseUmMlkv5tJqpI1Ni7-2BxndEXf1DSyNKylrj-2FLDRhlne5mc99BXROS-2F5C2geTpy-2BxpAuuwf4yYdQWEhmbrvBgLEhXVrX8ZLRjdKf5NONG0LRViPHFi3pDJ1-2B-2F8k2PTNTrnMeqpiomXQn84O3qUa4vfmPRA-3D" alt="" width="1" height="1" border="0" style="min-height:1px!important;width:1px!important;border-width:0!important;margin-top:0!important;margin-bottom:0!important;margin-right:0!important;margin-left:0!important;padding-top:0!important;padding-bottom:0!important;padding-right:0!important;padding-left:0!important">
<br>_______________________________________________<br>
swift-dev mailing list<br>
<a href="mailto:swift-dev@swift.org">swift-dev@swift.org</a><br>
<a href="https://lists.swift.org/mailman/listinfo/swift-dev" rel="noreferrer" target="_blank">https://lists.swift.org/mailman/listinfo/swift-dev</a><br>
<br></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>