1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-08 03:28:20 +02:00

make llvm git clone shallow

This commit is contained in:
Green Sky 2020-11-28 17:49:17 +01:00
parent 160c5f5186
commit a47dc0c0bf

10
extern/llvm_build.sh vendored
View file

@ -6,14 +6,8 @@ if [ ! -d llvm-project_11_0_0 ]; then
tar -xf llvm-11.0.0.src.tar.xz tar -xf llvm-11.0.0.src.tar.xz
mkdir llvm-project_11_0_0 mkdir llvm-project_11_0_0
mv llvm-11.0.0.src llvm-project_11_0_0/llvm mv llvm-11.0.0.src llvm-project_11_0_0/llvm
else # git clone llvm repo if llvm-11.0.0.src.tar.xz does not exists else # shallow git clone llvm repo if llvm-11.0.0.src.tar.xz does not exists
git clone https://github.com/llvm/llvm-project.git llvm-project_11_0_0 git clone --depth 1 --branch llvmorg-11.0.0 https://github.com/llvm/llvm-project.git llvm-project_11_0_0
if [ -d llvm-project_11_0_0 ]; then
cd llvm-project_11_0_0
git checkout llvmorg-11.0.0
cd ..
fi
fi fi
fi #end if llvm-project_11_0_0 exists fi #end if llvm-project_11_0_0 exists