Skip to content

Commit 4816705

Browse files
Speed up llvm clone by specifying depth and branch name
Co-Authored-By: Daniel Henry-Mantilla <[email protected]>
1 parent 298b138 commit 4816705

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ mkdir -p "$WORKING_DIR"
2222

2323
cd "$WORKING_DIR"
2424
if [ ! -d "$WORKING_DIR/llvm-project" ]; then
25-
git clone https://github.com/apple/llvm-project.git
25+
git clone --depth 1 --branch "$LLVM_BRANCH" https://github.com/apple/llvm-project.git
2626
fi
2727
cd "$WORKING_DIR/llvm-project"
2828
git reset --hard

config.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# returned by the command below:
44
# $ xcrun -sdk iphoneos swiftc --version
55

6-
LLVM_BRANCH="tags/swift-5.3.2-RELEASE"
6+
LLVM_BRANCH="swift-5.3.2-RELEASE"
77

88
# 2. Select the best branch, tag or commit hash from https://github.com/rust-lang/rust
99

0 commit comments

Comments
 (0)