Building Swift from source


(Mohit Athwani) #1

To compile, I've been using:

./swift/utils/build-script --preset=buildbot_linux_1604
install_destdir=/tmp/install installable_package=/tmp/swift.tar.gz

This process takes a very long time. I was wondering if there was a
quicker way for subsequent builds.

Thanks,

Mohit


(Alex Blewitt) #2

If you're just testing whether you can build successfully or not, then you could use the buildbot_incremental_linux preset. You can also build a version standalone without using a preset, like build-script --release

The commands that a preset corresponds to are stored in

https://github.com/apple/swift/blob/master/utils/build-presets.ini

Alex

ยทยทยท

On 21 Feb 2017, at 04:38, Mohit Athwani via swift-users <swift-users@swift.org> wrote:

To compile, I've been using:
./swift/utils/build-script --preset=buildbot_linux_1604 install_destdir=/tmp/install installable_package=/tmp/swift.tar.gz

This process takes a very long time. I was wondering if there was a quicker way for subsequent builds.