Skip to content

Instantly share code, notes, and snippets.

@rickyzhang82
Created July 14, 2018 19:25
Show Gist options
  • Save rickyzhang82/e97d922621ca70ca4b045b98a640e692 to your computer and use it in GitHub Desktop.
Save rickyzhang82/e97d922621ca70ca4b045b98a640e692 to your computer and use it in GitHub Desktop.
Build Swift for Fedora

Get the following package:

sudo dnf install libblocksruntime libblocksruntime-devel libblocksruntime-static

Run bash below:

#!/bin/bash
BASE_DIR=/home/Ricky/repo/github/apple-swift
BUILDS_DIR=/opt/apple-swift

rm -rf $BASE_DIR
mkdir -p $BASE_DIR
cd $BASE_DIR
git clone https://github.com/apple/swift.git swift
./swift/utils/update-checkout --clone --scheme master

time ./swift/utils/build-script --preset buildbot_linux,no_test install_destdir=$BUILDS_DIR installable_package=$BUILDS_DIR/swift-master.tar.gz > $BASE_DIR/swifty-building.tx
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment