Skip to content

Commit b0efe7a

Browse files
jwnrtluismarques
authored andcommitted
Shallow-clone LLVM
1 parent 16128ee commit b0efe7a

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

build-clang-with-args.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,10 @@ cd "${build_top_dir}/build"
5151

5252

5353
llvm_dir="${build_top_dir}/build/llvm-project"
54-
if [ ! -d "${llvm_dir}" ]; then
55-
git clone --branch ${LLVM_BRANCH} ${LLVM_URL} "${llvm_dir}"
54+
if [ ! -d "$llvm_dir" ]; then
55+
git clone "$LLVM_URL" "$llvm_dir" \
56+
--branch "$LLVM_BRANCH" \
57+
--depth 1
5658
fi
5759
cd "${llvm_dir}"
5860
git fetch origin

0 commit comments

Comments
 (0)