Skip to content

Commit cbe0a63

Browse files
committed
Using LLVM under tags/swift-5.1.3-RELEASE and Rust under tags/1.40.0
1 parent 6e0654b commit cbe0a63

File tree

3 files changed

+18
-18
lines changed

3 files changed

+18
-18
lines changed

build.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,12 @@ fi
1616

1717
cd "$WORKING_DIR"
1818
if [ ! -d "$WORKING_DIR/llvm-project" ]; then
19-
git clone https://github.com/apple/llvm-project.git -b "$LLVM_BRANCH"
19+
git clone https://github.com/apple/llvm-project.git
2020
fi
2121
cd "$WORKING_DIR/llvm-project"
2222
git reset --hard
2323
git clean -f
24-
git checkout "origin/$LLVM_BRANCH"
24+
git checkout "$LLVM_BRANCH"
2525
cd ..
2626

2727
mkdir -p llvm-build
@@ -37,7 +37,7 @@ fi
3737
cd rust
3838
git reset --hard
3939
git clean -f
40-
git checkout "$RUST_COMMIT"
40+
git checkout "$RUST_BRANCH"
4141
cd ..
4242
mkdir -p rust-build
4343
cd rust-build

config.sh

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
1-
# 1. Select the best branch from https://github.com/apple/llvm-project
2-
1+
# 1. Select the best branch, tag or commit hash from https://github.com/apple/llvm-project
2+
# The recommended approach is to use the tagged release that matches the Swift version
3+
# returned by the command below (at this time running Xcode Version 11.3.1 (11C504))
34
# $ xcrun -sdk iphoneos swiftc --version
4-
# Apple Swift version 5.1 (swiftlang-1100.0.270.13 clang-1100.0.33.7)
5-
# Target: x86_64-apple-darwin19.0.0
5+
# Apple Swift version 5.1.3 (swiftlang-1100.0.282.1 clang-1100.0.33.15)
6+
# Target: x86_64-apple-darwin19.3.0
7+
8+
LLVM_BRANCH="tags/swift-5.1.3-RELEASE"
9+
10+
# 2. Select the best branch, tag or commit hash from https://github.com/rust-lang/rust
11+
# The stable 1.40.0 version of Rust seems to work
612

7-
# There is a branch called "apple/stable/20190619" which is equivalent to the "stable"
8-
# Branch under https://github.com/apple/swift-llvm under which looks promising.
9-
# At this time (running Xcode 11.3) it's a couple of months newer than the 5.1 branch
10-
LLVM_BRANCH="apple/stable/20190619"
13+
RUST_BRANCH="tags/1.40.0"
1114

12-
# 2. Pick/install a working Rust nightly (ideally one where RLS and clippy built)
13-
# 3. Note its date
14-
RUST_NIGHTLY="2019-12-16"
15+
# 3. Select a name for the toolchain you want to install as. The toolchain will be installed
16+
# under $HOME/.rust-ios-arm64/toolchain-$RUST_TOOLCHAIN
1517

16-
# 4. Get its commit - this is what we will check out to build the iOS version
17-
# rustc --version | cut -d '(' -f2 | cut -d ' ' -f1
18-
RUST_COMMIT="a605441e0"
18+
RUST_TOOLCHAIN="1.40.0"

install.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ set -euxo
33
source config.sh
44

55
WORKING_DIR="$(pwd)/build"
6-
DEST_TOOLCHAIN="$HOME/.rust-ios-arm64/toolchain-$RUST_NIGHTLY"
6+
DEST_TOOLCHAIN="$HOME/.rust-ios-arm64/toolchain-$RUST_TOOLCHAIN"
77

88
mkdir -p "$DEST_TOOLCHAIN"
99
cp -r "$WORKING_DIR/rust-build/build/x86_64-apple-darwin/stage2"/* "$DEST_TOOLCHAIN"

0 commit comments

Comments
 (0)