[swift-build-dev] Customizing location of source directory

Max Howell max.howell at apple.com
Mon Jan 4 16:45:31 CST 2016


> Hi Max,
> 
> Question on compiling.  So far, I've been using my local install of Swift, that comes with XCode.
> 
> The instructions in the README suggest using the latest master for Swift itself and building package manager as part of that.  I haven't been able to find instructions for how to compile package manager as part of Swift though.
> 
> I've set up the XCode project, but I can't find any CLI switches or docs on enabling building other components.  Is documented somewhere or can someone provide basic instructions and I'm happy to write up a How-To doc.

I don’t quite understand your questions. This is what I do:

1. Download and install latest swift for darwin
2. xcrun launch-with-toolchain /Library/Developer/Toolchains/swift-latest.xctoolchain
3. ⌘B

Then to use this swift-build you just execute it:

    .build/debug/swift-build


More information about the swift-build-dev mailing list